From 71f93d0bdfef13ff0ed7d68ee71eb67117dc213e Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 3 Apr 2016 19:29:35 +0200 Subject: [PATCH] Scrape: Changed detection for the profile link --- include/Scrape.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/include/Scrape.php b/include/Scrape.php index ac95c0d5d3..68926a997e 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -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"]; } }