]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Commenting on public posts from Friendica users is now possible again
authorMichael <heluecht@pirati.ca>
Wed, 4 Apr 2018 06:06:38 +0000 (06:06 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 4 Apr 2018 06:06:38 +0000 (06:06 +0000)
src/Protocol/Diaspora.php

index d5d60a1541260bb1f0a00c0b1db8887c8286de50..3e53626bf34b9149a11d1e82a955a70e853abd54 100644 (file)
@@ -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) {