From b7c9b942f14e0b621b57f626d25f20b34e080b96 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 29 Jul 2015 00:21:08 +0200 Subject: [PATCH] Set the network name for some centralized networks. --- include/socgraph.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/socgraph.php b/include/socgraph.php index 979f1cb367..f0ed7ec232 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -419,8 +419,14 @@ function poco_last_updated($profile, $force = false) { if (in_array($urlparts["host"], array("www.facebook.com", "facebook.com", "twitter.com", "identi.ca", "alpha.app.net"))) { + $networks = array("www.facebook.com" => NETWORK_FACEBOOK, + "facebook.com" => NETWORK_FACEBOOK, + "twitter.com" => NETWORK_TWITTER, + "identi.ca" => NETWORK_PUMPIO, + "alpha.app.net" => NETWORK_APPNET); + q("UPDATE `gcontact` SET `network` = '%s' WHERE `nurl` = '%s'", - dbesc(NETWORK_PHANTOM), dbesc(normalise_link($profile))); + dbesc($networks[$urlparts["host"]]), dbesc(normalise_link($profile))); return; }