forked from GNUsocial/gnu-social
		
	[PLUGIN][ActivityPub][Model][Activity] No @context to exclude when object is not embedded.
This commit is contained in:
		| @@ -194,7 +194,9 @@ class Activity extends Model | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         $attr['object']->set('@context', null); | ||||
|         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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user