]> git.mxchange.org Git - friendica.git/commitdiff
Preparation to add the social network "pnut"
authorMichael <heluecht@pirati.ca>
Thu, 2 Feb 2017 06:06:23 +0000 (06:06 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 2 Feb 2017 06:06:23 +0000 (06:06 +0000)
boot.php
include/contact_selectors.php
include/contact_widgets.php

index a58b41f429667295f215fbcc79a70c41554a59f5..993c15bca1f68b71167530ccc5873e2a74f631b5 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -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),
 );
index 6b827baf31b4e7cb6dbaeb9e87538bd278f96f38..62d79d877afe3c5446208fbbc3f1a41ebe4cfe48 100644 (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')
        );
 
index 1e35db2c784964eeeead30ac6ae9eaa5389d3481..d077a065e16590def2a304749bcc57f5fd6a50ba 100644 (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 "";