X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpublic.php;h=6ecdf2e50ab337bdcabd7364dbca35a09a2558d4;hb=418b3c3c53194040022c4b56bd0c0b04fd6fd4d7;hp=8c724466368624ab98932f9e6179852b70fd4876;hpb=b4da5f3785de138b9b7c3672d331676ea7929c16;p=quix0rs-gnu-social.git diff --git a/actions/public.php b/actions/public.php index 8c72446636..6ecdf2e50a 100644 --- a/actions/public.php +++ b/actions/public.php @@ -102,7 +102,6 @@ class PublicAction extends Action if (!$this->notice) { // TRANS: Server error displayed when a public timeline cannot be retrieved. $this->serverError(_('Could not retrieve public timeline.')); - return; } if($this->page > 1 && $this->notice->N == 0){ @@ -246,7 +245,7 @@ class PublicAction extends Action { // Show invite button, as long as site isn't closed, and // we have a logged in user. - if (!common_config('site', 'closed') && common_logged_in()) { + if (common_config('invite', 'enabled') && !common_config('site', 'closed') && common_logged_in()) { if (!common_config('site', 'private')) { $ibs = new InviteButtonSection( $this,