]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
hide subscribe stuff if looking at your own page
authorEvan Prodromou <evan@prodromou.name>
Sun, 18 May 2008 01:18:08 +0000 (21:18 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sun, 18 May 2008 01:18:08 +0000 (21:18 -0400)
darcs-hash:20080518011808-84dde-a379fa8baa2f3cc7e871e54d46ef025106aecc84.gz

actions/showstream.php

index c9b35ee0bbb4bc297e0733ea4f9e7173ec944846..81f5a3db391deb51ff415d133f3f5ef950fc97cb 100644 (file)
@@ -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');
        }