瀏覽代碼

Update AP inbox

Daniel Supernault 5 年之前
父節點
當前提交
d85cdd13de
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Util/ActivityPub/Inbox.php

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

@@ -307,7 +307,7 @@ class Inbox
         $id = $this->payload['object']['id'];
         switch ($type) {
             case 'Person':
-                    $profile = Helpers::fetchProfile($actor);
+                    $profile = Helpers::profileFetch($actor);
                     if(!$profile || $profile->private_key != null) {
                         return;
                     }
@@ -323,7 +323,7 @@ class Inbox
                 break;
 
             case 'Tombstone':
-                    $profile = Helpers::fetchProfile($actor);
+                    $profile = Helpers::profileFetch($actor);
                     $status = Status::whereProfileId($profile->id)
                         ->whereUri($id)
                         ->orWhereUrl($id)