ShowstreamAction no longer has public ->profile

This commit is contained in:
Mikael Nordfeldth 2015-07-10 23:09:44 +02:00
parent 3900a739b9
commit 08bd4fa6a8
1 changed files with 3 additions and 4 deletions

View File

@ -115,11 +115,10 @@ class TagCloudSection extends Section
function tagUrl($tag) function tagUrl($tag)
{ {
if ('showstream' === $this->out->trimmed('action')) { if ($this->out instanceof ShowstreamAction) {
return common_local_url('showstream', array('nickname' => $this->out->profile->nickname, 'tag' => $tag)); return common_local_url('showstream', array('nickname' => $this->out->getTarget()->getNickname(), 'tag' => $tag));
} else {
return common_local_url('tag', array('tag' => $tag));
} }
return common_local_url('tag', array('tag' => $tag));
} }
function divId() function divId()