]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ShowstreamAction no longer has public ->profile
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 10 Jul 2015 21:09:44 +0000 (23:09 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 10 Jul 2015 21:09:44 +0000 (23:09 +0200)
lib/tagcloudsection.php

index 24a3bd98af96bf6c2baac39b53630217efe06a50..80a9042e0f1e0bac68016dabe147b2284b25e7b8 100644 (file)
@@ -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()