]> git.mxchange.org Git - friendica.git/commitdiff
Set the network name for some centralized networks.
authorMichael Vogel <icarus@dabo.de>
Tue, 28 Jul 2015 22:21:08 +0000 (00:21 +0200)
committerMichael Vogel <icarus@dabo.de>
Tue, 28 Jul 2015 22:21:08 +0000 (00:21 +0200)
include/socgraph.php

index 979f1cb367dfa60bc34148cb37336f7fadf18149..f0ed7ec232f69ee9a9e2d76949a1cffc4af79ff2 100644 (file)
@@ -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;
        }