Scrape: Always take the first alias

This commit is contained in:
Michael Vogel 2016-03-24 08:35:06 +01:00 committed by Roland Haeder
parent df961742da
commit 7362dce2f4
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78
1 changed files with 1 additions and 1 deletions

View File

@ -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