From: Evan Prodromou Date: Mon, 28 Mar 2011 20:24:28 +0000 (-0400) Subject: set default address for showstream X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=798b03fb5f86ab7d67c35866d256eeb620f5c0cc;p=quix0rs-gnu-social.git set default address for showstream --- diff --git a/actions/showstream.php b/actions/showstream.php index 1a01812ec5..fed9685b35 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -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!