]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't hide unsub button for remote users
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 5 Jul 2009 15:47:14 +0000 (11:47 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 5 Jul 2009 15:47:14 +0000 (11:47 -0400)
lib/profilelist.php

index e13d56a9a697c30edaf1071cb46f2d6f1e3322f7..774538a4b611de3a892c77c313b14ba2bb4a3088 100644 (file)
@@ -243,20 +243,20 @@ class ProfileListItem extends Widget
         $user = common_current_user();
 
         if (!empty($user) && $this->profile->id != $user->id) {
-            // Is it a local user? can't remote sub from a list
-            // XXX: make that possible!
-            $other = User::staticGet('id', $this->profile->id);
-            if (!empty($other)) {
-                $this->out->elementStart('li', 'entity_subscribe');
-                if ($user->isSubscribed($this->profile)) {
-                    $usf = new UnsubscribeForm($this->out, $this->profile);
-                    $usf->show();
-                } else {
+            $this->out->elementStart('li', 'entity_subscribe');
+            if ($user->isSubscribed($this->profile)) {
+                $usf = new UnsubscribeForm($this->out, $this->profile);
+                $usf->show();
+            } else {
+                // Is it a local user? can't remote sub from a list
+                // XXX: make that possible!
+                $other = User::staticGet('id', $this->profile->id);
+                if (!empty($other)) {
                     $sf = new SubscribeForm($this->out, $this->profile);
                     $sf->show();
                 }
-                $this->out->elementEnd('li');
             }
+            $this->out->elementEnd('li');
         }
     }