$args['page'] = $this->page;
}
common_redirect(common_local_url('showprofiletag', $args), 301);
- return false;
}
if (!$tagger) {
// TRANS: Client error displayed when a tagger is expected but not provided.
$this->clientError(_('No tagger.'), 404);
- return false;
}
- $user = User::staticGet('nickname', $tagger);
+ $user = User::getKV('nickname', $tagger);
if (!$user) {
// TRANS: Client error displayed trying to perform an action related to a non-existing user.
$this->clientError(_('No such user.'), 404);
- return false;
}
$this->tagger = $user->getProfile();
if (!$can_see) {
// TRANS: Client error displayed trying to reference a non-existing list.
$this->clientError(_('No such list.'), 404);
- return false;
}
$this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
if (!$this->peopletag) {
// TRANS: Client error displayed trying to perform an action related to a non-existing user.
$this->clientError(_('No such user.'));
- return;
}
$this->showPage();
class Peopletag extends PeopletagListItem
{
+ protected $avatarSize = AVATAR_PROFILE_SIZE;
+
function showStart()
{
$mode = $this->peopletag->private ? 'private' : 'public';
- $this->out->elementStart('div', array('class' => 'hentry peopletag peopletag-profile mode-'.$mode,
+ $this->out->elementStart('div', array('class' => 'h-entry peopletag peopletag-profile mode-'.$mode,
'id' => 'peopletag-' . $this->peopletag->id));
}
{
$this->out->elementEnd('div');
}
-
- function showAvatar()
- {
- parent::showAvatar(AVATAR_PROFILE_SIZE);
- }
}