]> git.mxchange.org Git - friendica.git/blobdiff - include/Scrape.php
Scrape: Changed detection for the profile link
[friendica.git] / include / Scrape.php
index ac95c0d5d3629b58c0a9e6e453850ac5405fef1e..68926a997ec1aa9dc8afd888ce3d5249030b4bdb 100644 (file)
@@ -705,10 +705,14 @@ function probe_url($url, $mode = PROBE_NORMAL, $level = 1) {
                                        if (($vcard["nick"] == "") AND ($data["header"]["author-nick"] != ""))
                                                $vcard["nick"] = $data["header"]["author-nick"];
 
-                                       if (($network == NETWORK_OSTATUS) AND ($data["header"]["author-id"] != ""))
-                                               $alias = $data["header"]["author-id"];
+                                       if ($network == NETWORK_OSTATUS) {
+                                               if ($data["header"]["author-id"] != "")
+                                                       $alias = $data["header"]["author-id"];
 
-                                       if(!$profile AND ($data["header"]["author-link"] != "") AND !in_array($network, array("", NETWORK_FEED)))
+                                               if ($data["header"]["author-link"] != "")
+                                                       $profile = $data["header"]["author-link"];
+
+                                       } elseif(!$profile AND ($data["header"]["author-link"] != "") AND !in_array($network, array("", NETWORK_FEED)))
                                                $profile = $data["header"]["author-link"];
                                }
                        }