From c16ae0bacbd255444c99b16fede353d2b0bf1b3c Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 4 Apr 2018 06:06:38 +0000 Subject: [PATCH] Fix: Commenting on public posts from Friendica users is now possible again --- src/Protocol/Diaspora.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index d5d60a1541..3e53626bf3 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -3264,13 +3264,15 @@ class Diaspora $logid = random_string(4); + $dest_url = ($public_batch ? $contact["batch"] : $contact["notify"]); + // We always try to use the data from the fcontact table. // This is important for transmitting data to Friendica servers. - if (!empty($contact['addr']) && ($contact['network'] != NETWORK_DIASPORA)) { + if (!empty($contact['addr'])) { $fcontact = self::personByHandle($contact['addr']); - $dest_url = ($public_batch ? $fcontact["batch"] : $fcontact["notify"]); - } else { - $dest_url = ($public_batch ? $contact["batch"] : $contact["notify"]); + if (!empty($fcontact)) { + $dest_url = ($public_batch ? $fcontact["batch"] : $fcontact["notify"]); + } } if (!$dest_url) {