From 4c8a58c445174844f920796a6b71c962b8827a93 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 6 Oct 2022 04:57:43 +0000 Subject: [PATCH] Akkoma is added to the federation statistics --- src/Module/Admin/Federation.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Module/Admin/Federation.php b/src/Module/Admin/Federation.php index b336f5ecda..5144b1e765 100644 --- a/src/Module/Admin/Federation.php +++ b/src/Module/Admin/Federation.php @@ -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); -- 2.39.5