]> git.mxchange.org Git - friendica.git/commitdiff
Only do the cleaning on specific networks
authorMichael Vogel <icarus@dabo.de>
Wed, 20 Apr 2016 07:38:06 +0000 (09:38 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 1 May 2016 11:48:52 +0000 (13:48 +0200)
include/socgraph.php

index be11894d9e63727cc76469906ee76fa643bcfb66..b7d6f29344644ec5d30f792639e40ddd1cb839af 100644 (file)
@@ -1420,7 +1420,7 @@ function get_gcontact_id($contact) {
        fix_alternate_contact_address($contact);
 
        // Remove unwanted parts from the contact url (e.g. "?zrl=...")
-       if ($contact["network"] != NETWORK_FEED)
+       if (in_array($contact["network"], array(NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS)))
                $contact["url"] = clean_contact_url($contact["url"]);
 
        $r = q("SELECT `id` FROM `gcontact` WHERE `nurl` = '%s' ORDER BY `id` LIMIT 2",