[COMPONENT][Posting] Blog posts should be Articles by default

This commit is contained in:
2022-03-28 21:04:24 +01:00
parent 10f71e9fed
commit fa82306f6f
9 changed files with 41 additions and 40 deletions

View File

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