forked from GNUsocial/gnu-social
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 = new UnsubscribeForm($this->out, $this->profile);
|
||||||
$usf->show();
|
$usf->show();
|
||||||
} else {
|
} else {
|
||||||
$other = User::staticGet('id', $this->profile->id);
|
// We can't initiate sub for a remote OMB profile.
|
||||||
if (!empty($other)) {
|
$remote = Remote_profile::staticGet('id', $this->profile->id);
|
||||||
|
if (empty($remote)) {
|
||||||
$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…
x
Reference in New Issue
Block a user