From 2a31b2383f7753f70f5829e202f248247e916321 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 9 Dec 2019 21:37:31 +0000 Subject: [PATCH 1/2] Issue 7691: We can now switch to BCC for ActivityPub --- src/Protocol/ActivityPub/Transmitter.php | 4 ++++ static/defaults.config.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index b28ee4452e..2afd54e47a 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -363,6 +363,10 @@ class Transmitter } } + if (Config::get('system', 'ap_always_bcc')) { + $always_bcc = true; + } + if (self::isAnnounce($item) || Config::get('debug', 'total_ap_delivery')) { // Will be activated in a later step $networks = Protocol::FEDERATED; diff --git a/static/defaults.config.php b/static/defaults.config.php index 67fe103910..f893a12e10 100644 --- a/static/defaults.config.php +++ b/static/defaults.config.php @@ -59,6 +59,10 @@ return [ // Only show small preview pictures. 'always_show_preview' => false, + // ap_always_bcc (Boolean) + // Adressing receivers via ActivityPub by BCC. Increases privacy, decreases performnce. + 'ap_always_bcc' => false, + // archival_days (Integer) // Number of days that we try to deliver content before we archive a contact. 'archival_days' => 32, From ed2bb213607e042c5ddf21325efc408b112a665e Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 9 Dec 2019 22:00:54 +0000 Subject: [PATCH 2/2] Improved description --- static/defaults.config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/defaults.config.php b/static/defaults.config.php index f893a12e10..e8211d597d 100644 --- a/static/defaults.config.php +++ b/static/defaults.config.php @@ -60,7 +60,7 @@ return [ 'always_show_preview' => false, // ap_always_bcc (Boolean) - // Adressing receivers via ActivityPub by BCC. Increases privacy, decreases performnce. + // Adresses non-mentioned ActivityPub receivers by BCC instead of CC. Increases privacy, decreases performance. 'ap_always_bcc' => false, // archival_days (Integer)