From bdd55638ce32a865833d6cf5d0fb3b67ca0b9f1d Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 20 Apr 2016 09:38:06 +0200 Subject: [PATCH] Only do the cleaning on specific networks --- include/socgraph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/socgraph.php b/include/socgraph.php index be11894d9e..b7d6f29344 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -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",