From fb131027fab744db6fc89713f5e266145cd3e39c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 17 Sep 2020 22:47:37 -0400 Subject: [PATCH] Ensure author-link key has a value in Worker\Notifier - Address https://github.com/friendica/friendica/issues/8875#issuecomment-691942457 --- src/Worker/Notifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/Notifier.php b/src/Worker/Notifier.php index 69b684feb7..1bcad1a73b 100644 --- a/src/Worker/Notifier.php +++ b/src/Worker/Notifier.php @@ -179,7 +179,7 @@ class Notifier // Only deliver threaded replies (comment to a comment) to Diaspora // when the original comment author does support the Diaspora protocol. - if ($target_item['parent-uri'] != $target_item['thr-parent']) { + if ($thr_parent['author-link'] && $target_item['parent-uri'] != $target_item['thr-parent']) { $diaspora_delivery = Diaspora::isSupportedByContactUrl($thr_parent['author-link']); Logger::info('Threaded comment', ['diaspora_delivery' => (int)$diaspora_delivery]); }