From: Mikael Nordfeldth <mmn@hethane.se>
Date: Fri, 10 Jul 2015 21:09:44 +0000 (+0200)
Subject: ShowstreamAction no longer has public ->profile
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=08bd4fa6a862fa63feca381cc69ce6174a1d0ff1;p=quix0rs-gnu-social.git

ShowstreamAction no longer has public ->profile
---

diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php
index 24a3bd98af..80a9042e0f 100644
--- a/lib/tagcloudsection.php
+++ b/lib/tagcloudsection.php
@@ -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()