X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpublic.php;h=af2fcff842ed737e2b2c4c07b9be14fac8c8aae7;hb=d48076253b02f8ab1f91e54289a189af7017db9f;hp=7bcdd3fae208de3eb1c175cb743b07a9a3aa4057;hpb=22fead1b46118a4fcb45b20a3bce620dd3283b65;p=quix0rs-gnu-social.git diff --git a/actions/public.php b/actions/public.php index 7bcdd3fae2..af2fcff842 100644 --- a/actions/public.php +++ b/actions/public.php @@ -159,6 +159,11 @@ class PublicAction extends Action $this->element('link', array('rel' => 'EditURI', 'type' => 'application/rsd+xml', 'href' => $rsd)); + + if ($this->page != 1) { + $this->element('link', array('rel' => 'canonical', + 'href' => common_local_url('public'))); + } } /** @@ -241,7 +246,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,