Merge pull request #9226 from MrPetovan/bug/fatal-errors

Ensure author-link key has a value in Worker\Notifier
This commit is contained in:
Michael Vogel 2020-09-18 22:28:42 +02:00 gecommit door GitHub
bovenliggende 2a402ef5ed fb131027fa
commit e229ad9555
Geen bekende sleutel gevonden voor deze handtekening in de database
GPG sleutel-ID: 4AEE18F83AFDEB23
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen

Bestand weergeven

@ -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]);
}