浏览代码

Update Inbox handler

Daniel Supernault 5 年之前
父节点
当前提交
d0fefe242b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Util/ActivityPub/Inbox.php

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

@@ -311,6 +311,8 @@ class Inbox
         $id = $this->payload['object']['id'];
         switch ($type) {
             case 'Person':
+                    // todo: fix race condition
+                    return; 
                     $profile = Helpers::profileFetch($actor);
                     if(!$profile || $profile->private_key != null) {
                         return;
@@ -327,8 +329,6 @@ class Inbox
                 break;
 
             case 'Tombstone':
-                    // todo: fix race condition
-                    return; 
                     $profile = Helpers::profileFetch($actor);
                     $status = Status::whereProfileId($profile->id)
                         ->whereUri($id)