Merge pull request #3146 from annando/1701-pnut

Preparation to add the social network "pnut"
This commit is contained in:
Tobias Diekershoff 2017-02-02 09:10:28 +01:00 committed by GitHub
commit adedf18b30
3 changed files with 6 additions and 0 deletions

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')
);

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 "";