Added Subscribe button to remote user entity actions in profie lists
This commit is contained in:
parent
1550d1004d
commit
4113f28851
|
@ -273,13 +273,18 @@ class ProfileListItem extends Widget
|
||||||
$usf = new UnsubscribeForm($this->out, $this->profile);
|
$usf = new UnsubscribeForm($this->out, $this->profile);
|
||||||
$usf->show();
|
$usf->show();
|
||||||
} else {
|
} else {
|
||||||
// Is it a local user? can't remote sub from a list
|
|
||||||
// XXX: make that possible!
|
|
||||||
$other = User::staticGet('id', $this->profile->id);
|
$other = User::staticGet('id', $this->profile->id);
|
||||||
if (!empty($other)) {
|
if (!empty($other)) {
|
||||||
$sf = new SubscribeForm($this->out, $this->profile);
|
$sf = new SubscribeForm($this->out, $this->profile);
|
||||||
$sf->show();
|
$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');
|
$this->out->elementEnd('li');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user