]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/profilelist.php
Ticket #2210: adjust locale setup fallback to try more locales on the system if en_US...
[quix0rs-gnu-social.git] / lib / profilelist.php
index 693cd64492b26fde8c0a6e0a639ea7db43137a50..d970e605ad817126f6c6eb274389bd640129feac 100644 (file)
@@ -273,10 +273,9 @@ class ProfileListItem extends Widget
                 $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)) {
+                // 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();
                 }