X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Funsilence.php;h=c01c141b1c193fd6337365b26497d9438bc71094;hb=ab93bb009c8533c8847aafe76ba9774d9d74e7ca;hp=723bf1bed5c92a1bb95c877d4c72012d1257838b;hpb=513c54fa89085fde783a73c298d61576f834b131;p=quix0rs-gnu-social.git diff --git a/actions/unsilence.php b/actions/unsilence.php index 723bf1bed5..c01c141b1c 100644 --- a/actions/unsilence.php +++ b/actions/unsilence.php @@ -62,7 +62,6 @@ class UnsilenceAction extends ProfileFormAction if (!$cur->hasRight(Right::SILENCEUSER)) { // TRANS: Client error on page to unsilence a user when 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 UnsilenceAction extends ProfileFormAction if (!$this->profile->isSilenced()) { // TRANS: Client error on page to unsilence a user when the to be unsilenced user has not been silenced. $this->clientError(_('User is not silenced.')); - return false; } return true;