X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ftagcloudsection.php;h=80a9042e0f1e0bac68016dabe147b2284b25e7b8;hb=543d968b81b97c9ebd46de063d8d70621c12015b;hp=561ffb077f6f8068496dbcbcf3040109397ddad3;hpb=57198a74647f8350db4de03b0b7ef157091a4359;p=quix0rs-gnu-social.git diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php index 561ffb077f..80a9042e0f 100644 --- a/lib/tagcloudsection.php +++ b/lib/tagcloudsection.php @@ -31,7 +31,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -define('TAGS_PER_SECTION', 20); +define('TAGS_PER_SECTION', 10); /** * Base class for sections @@ -115,11 +115,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()