From 28df9f7e807e11770de7ab33fa5ad621a09e1e87 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 1 Jun 2021 20:06:18 -0600 Subject: [PATCH] Update Inbox, fix reply/comment bug by moving attachment validation to Note with attachments --- app/Util/ActivityPub/Inbox.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Util/ActivityPub/Inbox.php b/app/Util/ActivityPub/Inbox.php index 524edc21f..0ac2f62e8 100644 --- a/app/Util/ActivityPub/Inbox.php +++ b/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(); } }