mirror of
https://github.com/openvk/openvk
synced 2025-07-07 16:29:50 +03:00
Comments: Prohibition on commenting on the publications of a blocked user
Comments: Prohibition on commenting on the publications of a blocked user (Fix of issue #266 )
This commit is contained in:
parent
fb7fa0ebfa
commit
bef565970e
1 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,9 @@ final class CommentPresenter extends OpenVKPresenter
|
||||||
|
|
||||||
if(empty($this->postParam("text")) && !$photo && !$video)
|
if(empty($this->postParam("text")) && !$photo && !$video)
|
||||||
$this->flashFail("err", "Не удалось опубликовать комментарий", "Комментарий пустой или слишком большой.");
|
$this->flashFail("err", "Не удалось опубликовать комментарий", "Комментарий пустой или слишком большой.");
|
||||||
|
|
||||||
|
if($entity->getOwner()->getBanReason() !== NULL)
|
||||||
|
$this->flashFail("err", "Не удалось опубликовать комментарий", "Автор публикации заблокирован.");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$comment = new Comment;
|
$comment = new Comment;
|
||||||
|
|
Loading…
Reference in a new issue