From 7f8aee2baa3852b042a6875d00dd39d868973a2c Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 20 Apr 2016 09:31:36 +0200 Subject: [PATCH] Don't clean the contact url of feeds --- include/socgraph.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/socgraph.php b/include/socgraph.php index 9bbafecff..be11894d9 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -1420,7 +1420,8 @@ function get_gcontact_id($contact) { fix_alternate_contact_address($contact); // Remove unwanted parts from the contact url (e.g. "?zrl=...") - $contact["url"] = clean_contact_url($contact["url"]); + if ($contact["network"] != NETWORK_FEED) + $contact["url"] = clean_contact_url($contact["url"]); $r = q("SELECT `id` FROM `gcontact` WHERE `nurl` = '%s' ORDER BY `id` LIMIT 2", dbesc(normalise_link($contact["url"])));