use Friendica\Protocol\Diaspora;
use Friendica\Model\Item;
use Friendica\Model\User;
+use Friendica\Util\Strings;
use Friendica\Util\XML;
use Friendica\Database\DBA;
$parts = parse_url($item["author-link"]);
$host = $parts["scheme"]."://".$parts["host"];
- if (normalise_link($host) != normalise_link(System::baseUrl())) {
+ if (Strings::normaliseLink($host) != Strings::normaliseLink(System::baseUrl())) {
$location = $host."/fetch/".$a->argv[1]."/".urlencode($guid);
header("HTTP/1.1 301 Moved Permanently");