Browse Source

Preparation to add the social network "pnut"

pull/3146/head
Michael 4 years ago
parent
commit
275a1c6574
3 changed files with 6 additions and 0 deletions
  1. +2
    -0
      boot.php
  2. +1
    -0
      include/contact_selectors.php
  3. +3
    -0
      include/contact_widgets.php

+ 2
- 0
boot.php View File

@ -245,6 +245,7 @@ define ( 'NETWORK_STATUSNET', 'stac'); // Statusnet connector
define ( 'NETWORK_APPNET', 'apdn'); // app.net
define ( 'NETWORK_NEWS', 'nntp'); // Network News Transfer Protocol
define ( 'NETWORK_ICALENDAR', 'ical'); // iCalendar
define ( 'NETWORK_PNUT', 'pnut'); // pnut.io
define ( 'NETWORK_PHANTOM', 'unkn'); // Place holder
/** @}*/
@ -274,6 +275,7 @@ $netgroup_ids = array(
NETWORK_APPNET => (-17),
NETWORK_NEWS => (-18),
NETWORK_ICALENDAR => (-19),
NETWORK_PNUT => (-20),
NETWORK_PHANTOM => (-127),
);


+ 1
- 0
include/contact_selectors.php View File

@ -89,6 +89,7 @@ function network_to_name($s, $profile = "") {
NETWORK_TWITTER => t('Twitter'),
NETWORK_DIASPORA2 => t('Diaspora Connector'),
NETWORK_STATUSNET => t('GNU Social'),
NETWORK_PNUT => t('pnut'),
NETWORK_APPNET => t('App.net')
);


+ 3
- 0
include/contact_widgets.php View File

@ -66,6 +66,9 @@ function unavailable_networks() {
if (!get_config("system","diaspora_enabled"))
$networks[] = NETWORK_DIASPORA;
if (!plugin_enabled("pnut"))
$networks[] = NETWORK_PNUT;
if (!sizeof($networks))
return "";


Loading…
Cancel
Save