Comment deletions are always send via DFRN
authorMichael <heluecht@pirati.ca>
Fri, 26 Mar 2021 20:09:23 +0000 (20:09 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 26 Mar 2021 20:09:23 +0000 (20:09 +0000)
src/Worker/Notifier.php

index 99b6a5e..e1f5d6b 100644 (file)
@@ -519,7 +519,9 @@ class Notifier
                                $contact['network'] = Protocol::DFRN;
                        }
 
-                       if (in_array($contact['id'], $ap_contacts)) {
+                       // Deletions are always sent via DFRN as well.
+                       // This is done until we can perform deletions of foreign comments on our own threads via AP.
+                       if (($cmd != Delivery::DELETION) && in_array($contact['id'], $ap_contacts)) {
                                Logger::info('Contact is already delivered via AP, so skip delivery via legacy DFRN/Diaspora', ['target' => $post_uriid, 'uid' => $sender_uid, 'contact' => $contact['url']]);
                                continue;
                        }