X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fsilence.php;h=6a4f84deb9a15390d89548750597af81a7735630;hb=4238875ebe784dfcac2d639ef48cae005923f86d;hp=c44aa3a6d788a1764cd33a9ac1d3730f0c93ee29;hpb=12588b1cf73fad7d0a76a29a46ec355150eaa54e;p=quix0rs-gnu-social.git diff --git a/actions/silence.php b/actions/silence.php index c44aa3a6d7..6a4f84deb9 100644 --- a/actions/silence.php +++ b/actions/silence.php @@ -62,7 +62,6 @@ class SilenceAction extends ProfileFormAction if (!$cur->hasRight(Right::SILENCEUSER)) { // TRANS: Client error displayed trying to silence a user on a site where the feature is not enabled. $this->clientError(_('You cannot silence users on this site.')); - return false; } assert(!empty($this->profile)); // checked by parent @@ -70,7 +69,6 @@ class SilenceAction extends ProfileFormAction if ($this->profile->isSilenced()) { // TRANS: Client error displayed trying to silence an already silenced user. $this->clientError(_('User is already silenced.')); - return false; } return true;