forked from GNUsocial/gnu-social
Only show import friends timeline option if bidirectional bridge enabled
This commit is contained in:
parent
4b0e5ff271
commit
fbf23ae0ee
@ -158,6 +158,8 @@ class TwittersettingsAction extends ConnectSettingsAction
|
|||||||
($flink->friendsync & FOREIGN_FRIEND_RECV) :
|
($flink->friendsync & FOREIGN_FRIEND_RECV) :
|
||||||
false);
|
false);
|
||||||
$this->elementEnd('li');
|
$this->elementEnd('li');
|
||||||
|
|
||||||
|
if (common_config('twitterbridge','enabled')) {
|
||||||
$this->elementStart('li');
|
$this->elementStart('li');
|
||||||
$this->checkbox('noticerecv',
|
$this->checkbox('noticerecv',
|
||||||
_('Import my Friends Timeline.'),
|
_('Import my Friends Timeline.'),
|
||||||
@ -165,6 +167,13 @@ class TwittersettingsAction extends ConnectSettingsAction
|
|||||||
($flink->noticesync & FOREIGN_NOTICE_RECV) :
|
($flink->noticesync & FOREIGN_NOTICE_RECV) :
|
||||||
false);
|
false);
|
||||||
$this->elementEnd('li');
|
$this->elementEnd('li');
|
||||||
|
} else {
|
||||||
|
// preserve setting even if bidrection bridge toggled off
|
||||||
|
if ($flink && ($flink->noticesync & FOREIGN_NOTICE_RECV)) {
|
||||||
|
$this->hidden('noticerecv', true, 'noticerecv');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$this->elementEnd('ul');
|
$this->elementEnd('ul');
|
||||||
|
|
||||||
if ($flink) {
|
if ($flink) {
|
||||||
|
Loading…
Reference in New Issue
Block a user