From 152daaabfba139ce5ed279965c523f5bc0f15f7d Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 28 Dec 2020 06:49:23 +0000 Subject: [PATCH] Comment to Twitter post is posted to AP instead Fixes friendica/friendica#9712 --- src/Worker/Notifier.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Worker/Notifier.php b/src/Worker/Notifier.php index 907037dce..a8d4f4ed9 100644 --- a/src/Worker/Notifier.php +++ b/src/Worker/Notifier.php @@ -766,6 +766,11 @@ class Notifier */ private static function activityPubDelivery($cmd, array $target_item, array $parent, array $thr_parent, $priority, $created, $owner) { + // Don't deliver via AP when the starting post isn't from a federated network + if (!in_array($parent['network'], Protocol::FEDERATED)) { + return 0; + } + // Don't deliver via AP when the starting post is delivered via Diaspora if ($parent['network'] == Protocol::DIASPORA) { return 0;