forked from GNUsocial/gnu-social
[PLUGIN][ActivityPub][Model][Activity] No @context to exclude when object is not embedded.
This commit is contained in:
parent
7ca4330f17
commit
12fb876a6d
@ -194,7 +194,9 @@ class Activity extends Model
|
||||
}
|
||||
}
|
||||
|
||||
if (!\is_string($attr['object'])) {
|
||||
$attr['object']->set('@context', null);
|
||||
}
|
||||
$type = self::jsonToType($attr);
|
||||
Event::handle('ActivityPubAddActivityStreamsTwoData', [$type->get('type'), &$type]);
|
||||
return $type->toJson($options);
|
||||
|
Loading…
Reference in New Issue
Block a user