Scrape: Always take the first alias

2022.09-rc
Michael Vogel 2016-03-24 08:35:06 +01:00 zatwierdzone przez Roland Haeder
rodzic df961742da
commit 7362dce2f4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B72F8185C6C7BD78
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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