Preparation for Tumblr

This commit is contained in:
Michael
2023-04-18 19:30:28 +00:00
parent 7a55052ad2
commit f0d8b109fe
4 changed files with 68 additions and 57 deletions
+2
View File
@@ -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',
+4
View File
@@ -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;
}
+1
View File
@@ -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