From 24afcdd5dd6354fb34a37aec82b6144f4a76840c Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 24 Mar 2016 08:35:06 +0100 Subject: [PATCH] Scrape: Always take the first alias --- include/Scrape.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Scrape.php b/include/Scrape.php index e8e9a97a16..03d21047e7 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -444,7 +444,7 @@ function probe_url($url, $mode = PROBE_NORMAL, $level = 1) { if($link['@attributes']['rel'] === 'alias') { if(strpos($link['@attributes']['href'],'@') === false) { if(isset($profile)) { - if($link['@attributes']['href'] !== $profile) + if(($link['@attributes']['href'] !== $profile) AND ($alias == "")) $alias = unamp($link['@attributes']['href']); } else