* @category Personal
* @package StatusNet
* @author Shashi Gowda <connect2shashi@gmail.com>
- * @copyright 2008-2009 StatusNet, Inc.
+ * @copyright 2008-2011 StatusNet, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
require_once INSTALLDIR.'/lib/peopletaglist.php';
-class PeopletagsbyuserAction extends OwnerDesignAction
+class PeopletagsbyuserAction extends Action
{
var $page = null;
var $tagger = null;
$this->args['public'] = $this->args['private'] = false;
}
- $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
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.
'(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->tagger->nickname);
+ 'are doing by subscribing to the list\'s timeline.' ), $this->tagger->nickname);
$this->elementStart('div', array('id' => 'anon_notice'));
$this->raw(common_markup_to_html($notice));
$this->elementEnd('div');