]> git.mxchange.org Git - friendica.git/commitdiff
Ensure author-link key has a value in Worker\Notifier
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 18 Sep 2020 02:47:37 +0000 (22:47 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 18 Sep 2020 02:47:37 +0000 (22:47 -0400)
- Address https://github.com/friendica/friendica/issues/8875#issuecomment-691942457

src/Worker/Notifier.php

index 69b684feb7cbff6b5bd6018a6329710f94ed09b1..1bcad1a73bfa756878eafcf7cbf21a30e8c053ef 100644 (file)
@@ -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]);
                        }