]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added Subscribe button to remote user entity actions in profie lists
authorSarven Capadisli <csarven@status.net>
Tue, 2 Mar 2010 20:25:32 +0000 (15:25 -0500)
committerSarven Capadisli <csarven@status.net>
Tue, 2 Mar 2010 20:25:32 +0000 (15:25 -0500)
lib/profilelist.php

index 693cd64492b26fde8c0a6e0a639ea7db43137a50..4f1e84a6af11e0af9097eebad916bea83da7e30a 100644 (file)
@@ -273,13 +273,18 @@ 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)) {
                     $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');
         }