Browse Source

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

Ensure author-link key has a value in Worker\Notifier
tags/2020.09
Michael Vogel 1 month ago
committed by GitHub
parent
commit
e229ad9555
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Worker/Notifier.php

+ 1
- 1
src/Worker/Notifier.php View 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]);
}


Loading…
Cancel
Save