X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffollow.php;h=8a00e0559ce3d4132dca07cc3f8084638e981dc7;hb=b55546b72649a645987e017397901a86122eba67;hp=48e621f4af8da036b02c0a0530a5b2c21c0143c1;hpb=28f316b7e4ca77a7f40b2462ef6a16cce2a536dc;p=friendica.git diff --git a/mod/follow.php b/mod/follow.php index 48e621f4af..8a00e0559c 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -17,7 +17,7 @@ use Friendica\Util\Strings; function follow_post(App $a) { if (!local_user()) { - System::httpExit(403, ['title' => L10n::t('Access denied.')]); + throw new \Friendica\Network\HTTPException\ForbiddenException(L10n::t('Access denied.')); } if (isset($_REQUEST['cancel'])) {