Preparation for Tumblr
This commit is contained in:
@@ -140,6 +140,7 @@ class ContactSelector
|
||||
Protocol::STATUSNET => DI::l10n()->t('GNU Social Connector'),
|
||||
Protocol::ACTIVITYPUB => DI::l10n()->t('ActivityPub'),
|
||||
Protocol::PNUT => DI::l10n()->t('pnut'),
|
||||
Protocol::TUMBLR => DI::l10n()->t('Tumblr'),
|
||||
];
|
||||
|
||||
Hook::callAll('network_to_name', $nets);
|
||||
@@ -210,6 +211,7 @@ class ContactSelector
|
||||
Protocol::STATUSNET => 'gnu-social',
|
||||
Protocol::ACTIVITYPUB => 'activitypub',
|
||||
Protocol::PNUT => 'file-text-o', /// @todo
|
||||
Protocol::TUMBLR => 'tumblr',
|
||||
];
|
||||
|
||||
$platform_icons = ['diaspora' => 'diaspora', 'friendica' => 'friendica', 'friendika' => 'friendica',
|
||||
|
||||
@@ -120,6 +120,10 @@ class Widget
|
||||
$networks[] = Protocol::TWITTER;
|
||||
}
|
||||
|
||||
if (!Addon::isEnabled("tumblr")) {
|
||||
$networks[] = Protocol::TUMBLR;
|
||||
}
|
||||
|
||||
if (DI::config()->get("system", "ostatus_disabled")) {
|
||||
$networks[] = Protocol::OSTATUS;
|
||||
}
|
||||
|
||||
@@ -56,6 +56,7 @@ class Protocol
|
||||
const STATUSNET = 'stac'; // Statusnet connector
|
||||
const TWITTER = 'twit'; // Twitter
|
||||
const DISCOURSE = 'dscs'; // Discourse
|
||||
const TUMBLR = 'tmbl'; // Tumblr
|
||||
|
||||
// Dead protocols
|
||||
const APPNET = 'apdn'; // app.net - Dead protocol
|
||||
|
||||
Reference in New Issue
Block a user