]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/OStatus.php
Merge pull request #8835 from tobiasd/20200701-lng
[friendica.git] / src / Protocol / OStatus.php
index 2720d6050ff5324d4c66ad327382826207b6cbac..0b9a45fc3b4082c8e0e1034791466ca8555e61c4 100644 (file)
@@ -1829,11 +1829,12 @@ class OStatus
                $item["private"] = Item::PRIVATE;
 
                $contact = Probe::uri($item['follow']);
+               $item['follow'] = $contact['url'];
 
-               if ($contact['alias'] == '') {
-                       $contact['alias'] = $contact["url"];
-               } else {
+               if ($contact['alias']) {
                        $item['follow'] = $contact['alias'];
+               } else {
+                       $contact['alias'] = $contact['url'];
                }
 
                $condition = ['uid' => $owner['uid'], 'nurl' => Strings::normaliseLink($contact["url"])];