From: Michael Vogel Date: Thu, 24 Mar 2016 07:35:06 +0000 (+0100) Subject: Scrape: Always take the first alias X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=24afcdd5dd6354fb34a37aec82b6144f4a76840c;p=friendica.git Scrape: Always take the first alias --- 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