summaryrefslogtreecommitdiff
path: root/lib/profilelist.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-03-02 15:25:32 -0500
committerSarven Capadisli <csarven@status.net>2010-03-02 15:25:32 -0500
commit4113f28851020509163a31ab20658429d86c3134 (patch)
tree0521e3a4235e0dbd0056aefa4cd59a4e9c9284a6 /lib/profilelist.php
parent1550d1004d44c8223b2280a35ca2f64ed61178ef (diff)
Added Subscribe button to remote user entity actions in profie lists
Diffstat (limited to 'lib/profilelist.php')
-rw-r--r--lib/profilelist.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/profilelist.php b/lib/profilelist.php
index 693cd6449..4f1e84a6a 100644
--- a/lib/profilelist.php
+++ b/lib/profilelist.php
@@ -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');
}