]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix for 4113f2884113f288: show regular subscribe form for all non-OMB profiles. We...
authorBrion Vibber <brion@pobox.com>
Wed, 3 Mar 2010 19:22:22 +0000 (19:22 +0000)
committerBrion Vibber <brion@pobox.com>
Wed, 3 Mar 2010 19:22:22 +0000 (19:22 +0000)
lib/profilelist.php

index 4f1e84a6af11e0af9097eebad916bea83da7e30a..d970e605ad817126f6c6eb274389bd640129feac 100644 (file)
@@ -273,18 +273,12 @@ class ProfileListItem extends Widget
                 $usf = new UnsubscribeForm($this->out, $this->profile);
                 $usf->show();
             } else {
-                $other = User::staticGet('id', $this->profile->id);
-                if (!empty($other)) {
+                // We can't initiate sub for a remote OMB profile.
+                $remote = Remote_profile::staticGet('id', $this->profile->id);
+                if (empty($remote)) {
                     $sf = new SubscribeForm($this->out, $this->profile);
                     $sf->show();
                 }
-                else {
-                    $url = common_local_url('remotesubscribe',
-                                            array('nickname' => $this->profile->nickname));
-                    $this->out->element('a', array('href' => $url,
-                                              'class' => 'entity_remote_subscribe'),
-                                   _('Subscribe'));
-                }
             }
             $this->out->elementEnd('li');
         }