]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
set default address for showstream
authorEvan Prodromou <evan@status.net>
Mon, 28 Mar 2011 20:24:28 +0000 (16:24 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 28 Mar 2011 20:24:28 +0000 (16:24 -0400)
actions/showstream.php

index 1a01812ec5d6a1c604c0d1be2ebe002c8455ca17..fed9685b355ab5055c3ced4ba045ce115ebcd28c 100644 (file)
@@ -278,6 +278,18 @@ class ShowstreamAction extends ProfileAction
         $cloud = new PersonalTagCloudSection($this, $this->user);
         $cloud->show();
     }
+
+    function noticeFormOptions()
+    {
+        $options = parent::noticeFormOptions();
+        $cur = common_current_user();
+
+        if (empty($cur) || $cur->id != $this->profile->id) {
+            $options['to_profile'] =  $this->profile;
+        }
+
+        return $options;
+    }
 }
 
 // We don't show the author for a profile, since we already know who it is!