[PLUGIN][ActivityPub][Model][Note] toJson: Respect source attribute and @language from context
This commit is contained in:
parent
a08b661779
commit
06c67b31c2
|
@ -466,6 +466,9 @@ class Note extends Model
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Language
|
||||||
|
$attr['@context'][] = ['@language' => $object->getLanguageLocale() ?? 'und'];
|
||||||
|
|
||||||
$type = self::jsonToType($attr);
|
$type = self::jsonToType($attr);
|
||||||
Event::handle('ActivityPubAddActivityStreamsTwoData', [$type->get('type'), &$type]);
|
Event::handle('ActivityPubAddActivityStreamsTwoData', [$type->get('type'), &$type]);
|
||||||
return $type->toJson($options);
|
return $type->toJson($options);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user