From: Diogo Cordeiro Date: Mon, 1 Jul 2019 21:40:21 +0000 (+0100) Subject: [CORE][ROUTER] Fix wrong parameter in all/:tag by XRevan86 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0a4eeb89dab241779147c8c02a8f5f0f83533309;p=quix0rs-gnu-social.git [CORE][ROUTER] Fix wrong parameter in all/:tag by XRevan86 --- diff --git a/actions/showprofiletag.php b/actions/showprofiletag.php index f99c9155e4..fcb629e128 100644 --- a/actions/showprofiletag.php +++ b/actions/showprofiletag.php @@ -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.'); diff --git a/lib/router.php b/lib/router.php index ab6595b8f8..be87afd88d 100644 --- a/lib/router.php +++ b/lib/router.php @@ -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) {