forked from GNUsocial/gnu-social
		
	[PLUGIN][ActivityPub][Model][Activity] If the object is wrapped in an activity, exclude the @context
This commit is contained in:
		@@ -193,6 +193,7 @@ class Activity extends Model
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $attr['object']->set('@context', null);
 | 
				
			||||||
        $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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user