diff --git a/includes/server/inbox.php b/includes/server/inbox.php index efbd799..26f4c8e 100644 --- a/includes/server/inbox.php +++ b/includes/server/inbox.php @@ -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; }