diff --git a/plugins/ActivityPub/Util/Model/Note.php b/plugins/ActivityPub/Util/Model/Note.php index a4080fe276..adf98d618b 100644 --- a/plugins/ActivityPub/Util/Model/Note.php +++ b/plugins/ActivityPub/Util/Model/Note.php @@ -466,6 +466,9 @@ class Note extends Model ]; } + // Language + $attr['@context'][] = ['@language' => $object->getLanguageLocale() ?? 'und']; + $type = self::jsonToType($attr); Event::handle('ActivityPubAddActivityStreamsTwoData', [$type->get('type'), &$type]); return $type->toJson($options);