[PLUGIN][ActivityPub][Model][Note] Replace our directMessage extension with LitePub's

This commit is contained in:
2022-02-23 22:25:11 +00:00
parent bc3d5245f5
commit af02bc7b32
4 changed files with 19 additions and 21 deletions

View File

@@ -357,7 +357,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' || $type_object->get('type') === 'Page') {
if ($type_object->get('type') === 'Note' || $type_object->get('type') === 'ChatMessage' || $type_object->get('type') === 'Page') {
$note = \Plugin\ActivityPub\Util\Model\Note::fromJson($type_object);
$note_id = $note->getId();
} else {