From: Evan Prodromou Date: Sun, 18 May 2008 01:18:08 +0000 (-0400) Subject: hide subscribe stuff if looking at your own page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f8aaa7f492810bcedf079ead552094f4346490df;p=quix0rs-gnu-social.git hide subscribe stuff if looking at your own page darcs-hash:20080518011808-84dde-a379fa8baa2f3cc7e871e54d46ef025106aecc84.gz --- 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'); }