浏览代码

Update Inbox, fix reply/comment bug by moving attachment validation to Note with attachments

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

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

@@ -154,13 +154,13 @@ class Inbox
             $this->handleDirectMessage();
             return;
         }
-        if(!$this->verifyNoteAttachment()) {
-            return;
-        }
         if($activity['type'] == 'Note' && !empty($activity['inReplyTo'])) {
             $this->handleNoteReply();
 
         } elseif($activity['type'] == 'Note' && !empty($activity['attachment'])) {
+	        if(!$this->verifyNoteAttachment()) {
+	            return;
+	        }
             $this->handleNoteCreate();
         }
     }