]> git.mxchange.org Git - friendica.git/blobdiff - include/Scrape.php
Scrape: Always take the first alias
[friendica.git] / include / Scrape.php
index e8e9a97a16c61cb1943fceb92acd9ac8954d9c80..03d21047e7d06e800080c10fe916ce31a811b774 100644 (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