https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e5b276f
)
Comment deletions are always send via DFRN
author
Michael
<heluecht@pirati.ca>
Fri, 26 Mar 2021 20:09:23 +0000
(20:09 +0000)
committer
Michael
<heluecht@pirati.ca>
Fri, 26 Mar 2021 20:09:23 +0000
(20:09 +0000)
src/Worker/Notifier.php
patch
|
blob
|
history
diff --git
a/src/Worker/Notifier.php
b/src/Worker/Notifier.php
index
99b6a5e
..
e1f5d6b
100644
(file)
--- a/
src/Worker/Notifier.php
+++ b/
src/Worker/Notifier.php
@@
-519,7
+519,9
@@
class Notifier
$contact['network'] = Protocol::DFRN;
}
$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;
}
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;
}