Merge pull request #11480 from annando/gotosocial

GoToSocial added to the federation admin page
This commit is contained in:
Hypolite Petovan 2022-05-08 16:40:32 -04:00 committed by GitHub
commit b9e091eb2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,7 @@ class Federation extends BaseAdmin
'diaspora' => ['name' => 'Diaspora', 'color' => '#a1a1a1'], // logo is black and white, makes a gray 'diaspora' => ['name' => 'Diaspora', 'color' => '#a1a1a1'], // logo is black and white, makes a gray
'funkwhale' => ['name' => 'Funkwhale', 'color' => '#4082B4'], // From the homepage 'funkwhale' => ['name' => 'Funkwhale', 'color' => '#4082B4'], // From the homepage
'gnusocial' => ['name' => 'GNU Social/Statusnet', 'color' => '#a22430'], // dark red from the logo 'gnusocial' => ['name' => 'GNU Social/Statusnet', 'color' => '#a22430'], // dark red from the logo
'gotosocial' => ['name' => 'GoToSocial', 'color' => '#df8958'], // Some color from their mascot
'hometown' => ['name' => 'Hometown', 'color' => '#1f70c1'], // Color from the Patreon page 'hometown' => ['name' => 'Hometown', 'color' => '#1f70c1'], // Color from the Patreon page
'hubzilla' => ['name' => 'Hubzilla/Red Matrix', 'color' => '#43488a'], // blue from the logo 'hubzilla' => ['name' => 'Hubzilla/Red Matrix', 'color' => '#43488a'], // blue from the logo
'lemmy' => ['name' => 'Lemmy', 'color' => '#00c853'], // Green from the page 'lemmy' => ['name' => 'Lemmy', 'color' => '#00c853'], // Green from the page
@ -154,7 +155,7 @@ class Federation extends BaseAdmin
$versionCounts = self::reformaDiasporaVersions($versionCounts); $versionCounts = self::reformaDiasporaVersions($versionCounts);
} elseif ($platform == 'relay') { } elseif ($platform == 'relay') {
$versionCounts = self::reformatRelayVersions($versionCounts); $versionCounts = self::reformatRelayVersions($versionCounts);
} elseif (in_array($platform, ['funkwhale', 'mastodon', 'mobilizon', 'misskey'])) { } elseif (in_array($platform, ['funkwhale', 'mastodon', 'mobilizon', 'misskey', 'gotosocial'])) {
$versionCounts = self::removeVersionSuffixes($versionCounts); $versionCounts = self::removeVersionSuffixes($versionCounts);
} }