1
0
Fork 0

Merge pull request #11965 from annando/akkoma

Akkoma is added to the federation statistics
This commit is contained in:
Tobias Diekershoff 2022-10-06 08:33:59 +02:00 committed by GitHub
commit b0d0d98a14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,7 @@ class Federation extends BaseAdmin
// We list the more common systems by name. The rest is counted as "other"
$systems = [
'friendica' => ['name' => 'Friendica', 'color' => '#ffc018'], // orange from the logo
'akkoma' => ['name' => 'Akkoma', 'color' => '#9574cd'], // Color from the page
'birdsitelive' => ['name' => 'BirdsiteLIVE', 'color' => '#1b6ec2'], // Color from the page
'bookwyrm' => ['name' => 'BookWyrm', 'color' => '#00d1b2'], // Color from the page
'castopod' => ['name' => 'Castopod', 'color' => '#00564a'], // Background color from the page
@ -153,7 +154,7 @@ class Federation extends BaseAdmin
if ($platform == 'friendica') {
$versionCounts = self::reformaFriendicaVersions($versionCounts);
} elseif ($platform == 'pleroma') {
} elseif (in_array($platform, ['pleroma', 'akkoma'])) {
$versionCounts = self::reformaPleromaVersions($versionCounts);
} elseif ($platform == 'diaspora') {
$versionCounts = self::reformaDiasporaVersions($versionCounts);