summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-05 11:47:14 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-07-05 11:47:14 -0400
commit83adf9fa1ab9d288e86fba9907be11454c3e0e28 (patch)
tree88193171d469a10accb3e878c59e9dd56930c85a /lib
parent5fe1af94b2fac526d31ab60c41fcb18bdbc991b0 (diff)
don't hide unsub button for remote users
Diffstat (limited to 'lib')
-rw-r--r--lib/profilelist.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/profilelist.php b/lib/profilelist.php
index e13d56a9a..774538a4b 100644
--- a/lib/profilelist.php
+++ b/lib/profilelist.php
@@ -243,20 +243,20 @@ class ProfileListItem extends Widget
$user = common_current_user();
if (!empty($user) && $this->profile->id != $user->id) {
- // 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 {
+ $this->out->elementStart('li', 'entity_subscribe');
+ if ($user->isSubscribed($this->profile)) {
+ $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();
}
- $this->out->elementEnd('li');
}
+ $this->out->elementEnd('li');
}
}