forked from GNUsocial/gnu-social
[PLUGIN][ActivityPub][Model][Note] Add support to Pages
This commit is contained in:
@@ -286,7 +286,7 @@ class Favourite extends NoteHandlerPlugin
|
||||
}
|
||||
if ($type_activity->get('type') === 'Like') { // Favourite
|
||||
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_id = \Plugin\ActivityPub\Util\Model\Note::fromJson($type_object)->getId();
|
||||
} else {
|
||||
return Event::next;
|
||||
|
||||
Reference in New Issue
Block a user