Issue 10640: Use consistent settings to enable protocol support
This commit is contained in:
@@ -394,7 +394,7 @@ class Delivery
|
||||
|
||||
Logger::notice('Deliver via Diaspora', ['target' => $target_item['id'], 'guid' => $target_item['guid'], 'to' => $loc]);
|
||||
|
||||
if (DI::config()->get('system', 'dfrn_only') || !DI::config()->get('system', 'diaspora_enabled')) {
|
||||
if (!DI::config()->get('system', 'diaspora_enabled')) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -477,7 +477,7 @@ class Delivery
|
||||
*/
|
||||
private static function deliverMail($cmd, $contact, $owner, $target_item, $thr_parent)
|
||||
{
|
||||
if (DI::config()->get('system','dfrn_only')) {
|
||||
if (DI::config()->get('system','imap_disabled')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -615,7 +615,7 @@ class Notifier
|
||||
$url_recipients = array_filter($url_recipients);
|
||||
// send salmon slaps to mentioned remote tags (@foo@example.com) in OStatus posts
|
||||
// They are especially used for notifications to OStatus users that don't follow us.
|
||||
if (!DI::config()->get('system', 'dfrn_only') && count($url_recipients) && ($public_message || $push_notify) && !empty($target_item)) {
|
||||
if (count($url_recipients) && ($public_message || $push_notify) && !empty($target_item)) {
|
||||
$slap = OStatus::salmon($target_item, $owner);
|
||||
foreach ($url_recipients as $url) {
|
||||
Logger::info('Salmon delivery', ['item' => $target_id, 'to' => $url]);
|
||||
|
||||
Reference in New Issue
Block a user