Correctly check for user's id in replies in user salmon post
This commit is contained in:
parent
ab88123373
commit
27626c3abf
@ -81,7 +81,7 @@ class UsersalmonAction extends SalmonAction
|
||||
throw new ClientException("In reply to unknown notice");
|
||||
}
|
||||
if ($notice->profile_id != $this->user->id &&
|
||||
!in_array($notice->getReplies(), $this->user->id)) {
|
||||
!in_array($this->user->id, $notice->getReplies())) {
|
||||
throw new ClientException("In reply to a notice not by this user and not mentioning this user");
|
||||
}
|
||||
} else if (!empty($context->attention)) {
|
||||
|
Loading…
Reference in New Issue
Block a user