]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
[CORE][ROUTER] Fix wrong parameter in all/:tag by XRevan86
authorDiogo Cordeiro <diogo@fc.up.pt>
Mon, 1 Jul 2019 21:40:21 +0000 (22:40 +0100)
committerDiogo Cordeiro <diogo@fc.up.pt>
Mon, 1 Jul 2019 21:40:21 +0000 (22:40 +0100)
actions/showprofiletag.php
lib/router.php

index f99c9155e4c2f4c089656b76daddea6004a2ed7f..fcb629e128e701a4613e234fd70ca3aa2cb8e19b 100644 (file)
@@ -32,7 +32,7 @@ class ShowprofiletagAction extends ShowstreamAction
     {
         $tag = common_canonical_tag($this->arg('tag'));
         try {
-            $this->peopletag = Profile_list::getByPK(array('tagger' => $this->target->getID(), 'tag' => $tag));
+            $this->peopletag = Profile_list::getByPK(['tagger' => $this->target->getID(), 'tag' => $tag]);
         } catch (NoResultException $e) {
             // TRANS: Client error displayed trying to reference a non-existing list.
             throw new ClientException('No such list.');
index ab6595b8f8a51b44bd12692f2ef261b4a512bd14..be87afd88d647ab8187b4a53c26f8a2b941a326b 100644 (file)
@@ -924,7 +924,7 @@ class Router
 
                 $m->connect('all/:tag',
                                 array('action' => 'showprofiletag',
-                                      'nickname' => $nickname,
+                                      'tagger' => $nickname,
                                       'tag' => self::REGEX_TAG));
 
                 foreach (array('subscriptions', 'subscribers') as $a) {