From f8aaa7f492810bcedf079ead552094f4346490df Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 17 May 2008 21:18:08 -0400 Subject: [PATCH] hide subscribe stuff if looking at your own page darcs-hash:20080518011808-84dde-a379fa8baa2f3cc7e871e54d46ef025106aecc84.gz --- actions/showstream.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/showstream.php b/actions/showstream.php index c9b35ee0bb..81f5a3db39 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -59,7 +59,7 @@ class ShowstreamAction extends StreamAction { $this->show_last_notice($profile); - if ($cur) { + if ($cur && $cur->id != $profile->id) { if ($cur->isSubscribed($profile)) { $this->show_unsubscribe_form($profile); } else { @@ -125,7 +125,7 @@ class ShowstreamAction extends StreamAction { 'name' => 'subscribeto', 'type' => 'hidden', 'value' => $profile->nickname)); - common_element('input', array('type' => 'submit'), _t('subscribe')); + common_element('input', array('type' => 'submit', 'value' => _t('Subscribe'))); common_element_end('form'); }