]> git.mxchange.org Git - friendica.git/commitdiff
Preparation to add Bluesky
authorMichael <heluecht@pirati.ca>
Sun, 21 May 2023 17:19:39 +0000 (17:19 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 21 May 2023 17:19:39 +0000 (17:19 +0000)
images/bluesky.jpg [new file with mode: 0644]
src/Content/ContactSelector.php
src/Content/Text/Plaintext.php
src/Core/Protocol.php

diff --git a/images/bluesky.jpg b/images/bluesky.jpg
new file mode 100644 (file)
index 0000000..35020ac
Binary files /dev/null and b/images/bluesky.jpg differ
index d9f475e2e7595f1fa028ece7297177fb21e319e5..9a8af1cd244defb30489404f434070b814f28c52 100644 (file)
@@ -141,6 +141,7 @@ class ContactSelector
                        Protocol::ACTIVITYPUB => DI::l10n()->t('ActivityPub'),
                        Protocol::PNUT      =>   DI::l10n()->t('pnut'),
                        Protocol::TUMBLR    =>   DI::l10n()->t('Tumblr'),
+                       Protocol::BLUESKY   =>   DI::l10n()->t('Bluesky'),
                ];
 
                Hook::callAll('network_to_name', $nets);
@@ -212,6 +213,7 @@ class ContactSelector
                        Protocol::ACTIVITYPUB => 'activitypub',
                        Protocol::PNUT      =>   'file-text-o', /// @todo
                        Protocol::TUMBLR    =>   'tumblr',
+                       Protocol::BLUESKY   =>   'circle', /// @todo
                ];
 
                $platform_icons = ['diaspora' => 'diaspora', 'friendica' => 'friendica', 'friendika' => 'friendica',
index 4ea4849fe7c19d6330cd783b5765365f64059c52..b297f75b367acf20c2297d8b448b8e4b76baec09 100644 (file)
@@ -26,7 +26,6 @@ use Friendica\DI;
 use Friendica\Model\Photo;
 use Friendica\Model\Post;
 use Friendica\Util\Network;
-use Friendica\Util\Strings;
 
 class Plaintext
 {
index 977684875731977775598294efccad1e2c727a55..4effa8d74b94eff2aa3f41649bb3d983fa9a70cc 100644 (file)
@@ -57,6 +57,7 @@ class Protocol
        const TWITTER   = 'twit';    // Twitter
        const DISCOURSE = 'dscs';    // Discourse
        const TUMBLR    = 'tmbl';    // Tumblr
+       const BLUESKY   = 'bsky';    // Bluesky
 
        // Dead protocols
        const APPNET    = 'apdn';    // app.net - Dead protocol