X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpeopletagsforuser.php;h=83122e41055ce0b22c7070d3fd35db7937222758;hb=603d2d3891d9e3a194417e587f251675e99ed6d8;hp=cc281339400d1f2e033b97ea18055b7f4208e977;hpb=cb183359e23ae7a5cfb483fa06c6c4b7a8b05fff;p=quix0rs-gnu-social.git diff --git a/actions/peopletagsforuser.php b/actions/peopletagsforuser.php index cc28133940..83122e4105 100644 --- a/actions/peopletagsforuser.php +++ b/actions/peopletagsforuser.php @@ -58,7 +58,12 @@ class PeopletagsforuserAction extends Action { parent::prepare($args); - $nickname_arg = $this->arg('nickname'); + if (common_config('singleuser', 'enabled')) { + $nickname_arg = User::singleUserNickname(); + } else { + $nickname_arg = $this->arg('nickname'); + } + $nickname = common_canonical_nickname($nickname_arg); // Permanent redirect on non-canonical nickname @@ -72,7 +77,7 @@ class PeopletagsforuserAction extends Action return false; } - $this->user = User::staticGet('nickname', $nickname); + $this->user = User::getKV('nickname', $nickname); if (!$this->user) { // TRANS: Client error displayed trying to perform an action related to a non-existing user. @@ -111,7 +116,7 @@ class PeopletagsforuserAction extends Action '(http://en.wikipedia.org/wiki/Micro-blogging) service ' . 'based on the Free Software [StatusNet](http://status.net/) tool. ' . 'You can easily keep track of what they ' . - 'are doing by subscribing to the tag\'s timeline.' ), $this->tagged->nickname); + 'are doing by subscribing to the list\'s timeline.' ), $this->tagged->nickname); $this->elementStart('div', array('id' => 'anon_notice')); $this->raw(common_markup_to_html($notice)); $this->elementEnd('div');