mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update Inbox, fix reply/comment bug by moving attachment validation to Note with attachments
This commit is contained in:
parent
1e230e80fb
commit
28df9f7e80
1 changed files with 3 additions and 3 deletions
|
@ -154,13 +154,13 @@ class Inbox
|
||||||
$this->handleDirectMessage();
|
$this->handleDirectMessage();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(!$this->verifyNoteAttachment()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if($activity['type'] == 'Note' && !empty($activity['inReplyTo'])) {
|
if($activity['type'] == 'Note' && !empty($activity['inReplyTo'])) {
|
||||||
$this->handleNoteReply();
|
$this->handleNoteReply();
|
||||||
|
|
||||||
} elseif($activity['type'] == 'Note' && !empty($activity['attachment'])) {
|
} elseif($activity['type'] == 'Note' && !empty($activity['attachment'])) {
|
||||||
|
if(!$this->verifyNoteAttachment()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$this->handleNoteCreate();
|
$this->handleNoteCreate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue