diff options
author | Zach Copley <zach@status.net> | 2010-03-03 00:54:35 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-03-03 00:54:35 +0000 |
commit | 097e3f89b630b7a28f27c96f5e9a036df3ed7710 (patch) | |
tree | b34602a5fcd9cc9474737379ddafde3976c0cb96 /lib/profilelist.php | |
parent | 6c1321b108206d05b75703da22ea8abab82071bf (diff) | |
parent | 08422dfa17a5c52d51f21087be0f1d8d602ed0af (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'lib/profilelist.php')
-rw-r--r-- | lib/profilelist.php | 9 |
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'); } |