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
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if (!\is_string($attr['object'])) {
 | 
				
			||||||
            $attr['object']->set('@context', null);
 | 
					            $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