فهرست منبع

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();
         }
     }