]> git.mxchange.org Git - friendica.git/commitdiff
Scrape: Always take the first alias
authorMichael Vogel <icarus@dabo.de>
Thu, 24 Mar 2016 07:35:06 +0000 (08:35 +0100)
committerMichael Vogel <icarus@dabo.de>
Thu, 24 Mar 2016 07:35:06 +0000 (08:35 +0100)
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