Skip to content

Commit

Permalink
Update Inbox, fix reply/comment bug by moving attachment validation t…
Browse files Browse the repository at this point in the history
…o Note with attachments
  • Loading branch information
dansup committed Jun 2, 2021
1 parent 1e230e8 commit 28df9f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Util/ActivityPub/Inbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,13 @@ public function handleCreateActivity()
$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();
}
}
Expand Down

0 comments on commit 28df9f7

Please sign in to comment.