[PLUGIN][ActivityPub][Model][Activity] If the object is wrapped in an activity, exclude the @context
This commit is contained in:
parent
d12038a9f8
commit
4754593cde
|
@ -193,6 +193,7 @@ class Activity extends Model
|
|||
}
|
||||
}
|
||||
|
||||
$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