- 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);
+ if (in_array($urlparts["host"], ["twitter.com", "identi.ca"])) {
+ $networks = ["twitter.com" => Protocol::TWITTER, "identi.ca" => Protocol::PUMPIO];