X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ftagcloudsection.php;h=9f7320f2de41d750c96da518299e5ab843e4efac;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=5da138fd32061f6cc6fd7aaabc311d36e3d749ea;hpb=4694d068f965ec733edcfe5c9afe8244ae01f00a;p=quix0rs-gnu-social.git diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php index 5da138fd32..9f7320f2de 100644 --- a/lib/tagcloudsection.php +++ b/lib/tagcloudsection.php @@ -119,11 +119,10 @@ class TagCloudSection extends Section function tagUrl($tag) { - if ('showstream' === $this->out->trimmed('action')) { - return common_local_url('showstream', array('nickname' => $this->out->profile->nickname, 'tag' => $tag)); - } else { - return common_local_url('tag', array('tag' => $tag)); + if ($this->out instanceof ShowstreamAction) { + return common_local_url('showstream', array('nickname' => $this->out->getTarget()->getNickname(), 'tag' => $tag)); } + return common_local_url('tag', array('tag' => $tag)); } function divId()