]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/public.php
Fix error 'No matches for action subscriptions with arguments nickname...' when displ...
[quix0rs-gnu-social.git] / actions / public.php
index 7bcdd3fae208de3eb1c175cb743b07a9a3aa4057..af2fcff842ed737e2b2c4c07b9be14fac8c8aae7 100644 (file)
@@ -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,