Browse Source

Merge pull request #1715 from pixelfed/trwnh-patch-1

Use correct ID when Accepting an activity
daniel 5 years ago
parent
commit
ce6f6a251f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Util/ActivityPub/Inbox.php

+ 1 - 1
app/Util/ActivityPub/Inbox.php

@@ -197,7 +197,7 @@ class Inbox
                 'type'     => 'Accept',
                 'actor'    => $target->permalink(),
                 'object'   => [
-                    'id'        => $actor->permalink('#follows/' . $follower->id),
+                    'id'        => $this->payload['id'],
                     'actor'     => $actor->permalink(),
                     'type'      => 'Follow',
                     'object'    => $target->permalink()