Issue 11952: Avoid to send AP related comments to Diaspora
This commit is contained in:
parent
38cf0666bd
commit
7395ae22f7
2 changed files with 15 additions and 0 deletions
|
@ -191,6 +191,10 @@ class Notifier
|
|||
// when the original comment author does support the Diaspora protocol.
|
||||
if ($thr_parent['author-link'] && $target_item['parent-uri'] != $target_item['thr-parent']) {
|
||||
$diaspora_delivery = Diaspora::isSupportedByContactUrl($thr_parent['author-link']);
|
||||
if ($diaspora_delivery && empty($target_item['signed_text'])) {
|
||||
Logger::debug('Post has got no Diaspora signature, so there will be no Diaspora delivery', ['guid' => $target_item['guid'], 'uri-id' => $target_item['uri-id']]);
|
||||
$diaspora_delivery = false;
|
||||
}
|
||||
Logger::info('Threaded comment', ['diaspora_delivery' => (int)$diaspora_delivery]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue