From 0c6d8e1fd761d432337d2e49242717117dde1906 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sun, 10 Mar 2019 09:27:47 -0400 Subject: [PATCH] Don't forward activities whose objects are actors --- includes/server/inbox.php | 5 +++++ 1 file changed, 5 insertions(+) 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; }