]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #4615 from tobiasd/20180317-credits
authorMichael Vogel <icarus@dabo.de>
Sat, 17 Mar 2018 06:27:43 +0000 (07:27 +0100)
committerGitHub <noreply@github.com>
Sat, 17 Mar 2018 06:27:43 +0000 (07:27 +0100)
regen credits

src/Protocol/Diaspora.php

index 097ec8ddd58d9fb3ee9781af1802d72c3876fa7d..9da41b1b36c3a734029a87696c484ce090e2115c 100644 (file)
@@ -3217,13 +3217,14 @@ class Diaspora
                }
 
                $logid = random_string(4);
-               $dest_url = ($public_batch ? $contact["batch"] : $contact["notify"]);
 
-               // Fetch the fcontact entry when there is missing data
-               // Will possibly happen when data is transmitted to a DFRN contact
-               if (empty($dest_url) && !empty($contact['addr'])) {
+               // We always try to use the data from the fcontact table.
+               // This is important for transmitting data to Friendica servers.
+               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 (!$dest_url) {