[PLUGIN][ActivityPub][Model][Note] Add support to Pages

This commit is contained in:
2022-02-19 04:45:02 +00:00
parent 75837af412
commit 8cf60275e6
5 changed files with 8 additions and 6 deletions

View File

@@ -364,7 +364,7 @@ class RepeatNote extends NoteHandlerPlugin
}
if ($type_activity->get('type') === 'Announce') { // Repeat
if ($type_object instanceof \ActivityPhp\Type\AbstractObject) {
if ($type_object->get('type') === 'Note') {
if ($type_object->get('type') === 'Note' || $type_object->get('type') === 'Page') {
$note = \Plugin\ActivityPub\Util\Model\Note::fromJson($type_object);
$note_id = $note->getId();
} else {