Don't forward activities whose objects are actors

This commit is contained in:
Jeremy Dormitzer 2019-03-10 09:27:47 -04:00
parent 46de0b6fe2
commit 0c6d8e1fd7

View File

@ -91,6 +91,11 @@ function forward_activity( $actor_slug, $activity ) {
if ( $seen_before ) {
return;
}
// Don't forward activities whose objects are actors
if ( array_key_exists( 'object', $activity ) &&
array_key_exists( 'publicKey', $activity['object'] ) ) {
return;
}
if ( !references_local_object( $activity, 0 ) ) {
return;
}