Fix for 4113f2884113f288: show regular subscribe form for all non-OMB profiles. We can't initiate remote sub for an OMB from our end, so dropping there.
This commit is contained in:
parent
3bb42d1170
commit
33af29b47c
@ -273,18 +273,12 @@ class ProfileListItem extends Widget
|
||||
$usf = new UnsubscribeForm($this->out, $this->profile);
|
||||
$usf->show();
|
||||
} else {
|
||||
$other = User::staticGet('id', $this->profile->id);
|
||||
if (!empty($other)) {
|
||||
// We can't initiate sub for a remote OMB profile.
|
||||
$remote = Remote_profile::staticGet('id', $this->profile->id);
|
||||
if (empty($remote)) {
|
||||
$sf = new SubscribeForm($this->out, $this->profile);
|
||||
$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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user