]> git.mxchange.org Git - friendica.git/commitdiff
Scrape: Changed detection for the profile link
authorMichael Vogel <icarus@dabo.de>
Sun, 3 Apr 2016 17:29:35 +0000 (19:29 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 3 Apr 2016 17:29:35 +0000 (19:29 +0200)
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"];
                                }
                        }