瀏覽代碼

copy activity id instead of guessing blindly

see #1710
trwnh 5 年之前
父節點
當前提交
995d604ea0
共有 1 個文件被更改,包括 1 次插入1 次删除
  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()