mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
Only enable "pubmail" when it is enabled
This commit is contained in:
parent
b57f455dc8
commit
b8c4332a20
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ function item_post(App $a) {
|
|||
// if using the API, we won't see pubmail_enable - figure out if it should be set
|
||||
if ($api_source && $profile_uid && $profile_uid == local_user() && !$private) {
|
||||
if (function_exists('imap_open') && !Config::get('system', 'imap_disabled')) {
|
||||
$pubmail_enabled = dba::exists('mailacct', ["`uid` = ? AND `server` != ?", local_user(), '']);
|
||||
$pubmail_enabled = dba::exists('mailacct', ["`uid` = ? AND `server` != ? AND `pubmail`", local_user(), '']);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue