diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-07-03 23:34:44 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-07-03 23:34:44 -0400 |
commit | 741eb1a28bbe505364baa440539bbc5ed6fbe5e0 (patch) | |
tree | 0ab3ccfd1f1b340056c0548252f57e47cc0ef843 /lib/profilelist.php | |
parent | 3e4be98ff6de7a1044f0d7b0deef4f6054e64464 (diff) | |
parent | eedfaa7d1a8e0f97175dfb832091250ca2e1f851 (diff) |
Merge branch '0.8.x' into queuemanager
Diffstat (limited to 'lib/profilelist.php')
-rw-r--r-- | lib/profilelist.php | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/lib/profilelist.php b/lib/profilelist.php index a604230f8..e13d56a9a 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -243,15 +243,20 @@ class ProfileListItem extends Widget $user = common_current_user(); if (!empty($user) && $this->profile->id != $user->id) { - $this->out->elementStart('li', 'entity_subscribe'); - if ($user->isSubscribed($this->profile)) { - $usf = new UnsubscribeForm($this->out, $this->profile); - $usf->show(); - } else { - $sf = new SubscribeForm($this->out, $this->profile); - $sf->show(); + // 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 { + $sf = new SubscribeForm($this->out, $this->profile); + $sf->show(); + } + $this->out->elementEnd('li'); } - $this->out->elementEnd('li'); } } |