From 798b03fb5f86ab7d67c35866d256eeb620f5c0cc Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 28 Mar 2011 16:24:28 -0400 Subject: [PATCH] set default address for showstream --- actions/showstream.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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! -- 2.39.5