only show subscribe button in profile list for local users
This commit is contained in:
parent
72d0ee4e25
commit
c04e3c7769
|
@ -243,6 +243,10 @@ 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);
|
||||
|
@ -254,6 +258,7 @@ class ProfileListItem extends Widget
|
|||
$this->out->elementEnd('li');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function endActions()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user