don't hide unsub button for remote users
This commit is contained in:
parent
5fe1af94b2
commit
83adf9fa1a
@ -243,20 +243,20 @@ class ProfileListItem extends Widget
|
|||||||
$user = common_current_user();
|
$user = common_current_user();
|
||||||
|
|
||||||
if (!empty($user) && $this->profile->id != $user->id) {
|
if (!empty($user) && $this->profile->id != $user->id) {
|
||||||
// Is it a local user? can't remote sub from a list
|
$this->out->elementStart('li', 'entity_subscribe');
|
||||||
// XXX: make that possible!
|
if ($user->isSubscribed($this->profile)) {
|
||||||
$other = User::staticGet('id', $this->profile->id);
|
$usf = new UnsubscribeForm($this->out, $this->profile);
|
||||||
if (!empty($other)) {
|
$usf->show();
|
||||||
$this->out->elementStart('li', 'entity_subscribe');
|
} else {
|
||||||
if ($user->isSubscribed($this->profile)) {
|
// Is it a local user? can't remote sub from a list
|
||||||
$usf = new UnsubscribeForm($this->out, $this->profile);
|
// XXX: make that possible!
|
||||||
$usf->show();
|
$other = User::staticGet('id', $this->profile->id);
|
||||||
} else {
|
if (!empty($other)) {
|
||||||
$sf = new SubscribeForm($this->out, $this->profile);
|
$sf = new SubscribeForm($this->out, $this->profile);
|
||||||
$sf->show();
|
$sf->show();
|
||||||
}
|
}
|
||||||
$this->out->elementEnd('li');
|
|
||||||
}
|
}
|
||||||
|
$this->out->elementEnd('li');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user