Browse Source

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

Use correct ID when Accepting an activity
daniel 5 năm trước cách đây
mục cha
commit
ce6f6a251f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Util/ActivityPub/Inbox.php

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

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