PluginProbe
ActivityPub / 7.8.4
ActivityPub v7.8.4
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/handler/class-accept.php +1 -12 9.0.27.8.4 View file →
@@ -41,20 +41,9 @@
41 41 ) {
42 42 return;
43 43 }
44 44
45 - /*
46 - * For a Follow Accept, the sender must be the actor that was followed.
47 - * Without this, a signed Accept from one actor could confirm a Follow that
48 - * targeted another actor by referencing that pending Follow's outbox GUID.
49 - */
50 - $accept_actor = object_to_uri( $accept['actor'] ?? '' );
51 - $followed_actor = object_to_uri( $accept['object']['object'] ?? '' );
52 - if ( ! $accept_actor || ! $followed_actor || $accept_actor !== $followed_actor ) {
53 - return;
54 - }
55 -
56 - $actor_post = Remote_Actors::get_by_uri( $followed_actor );
45 + $actor_post = Remote_Actors::get_by_uri( object_to_uri( $accept['object']['object'] ) );
57 46
58 47 if ( \is_wp_error( $actor_post ) ) {
59 48 return;
60 49 }