Small fixes

This commit is contained in:
Michael 2021-06-12 11:19:23 +00:00
parent c21cbd936e
commit b7f12051a8

View file

@ -133,7 +133,7 @@ class Federation extends BaseAdmin
} elseif ($platform == 'diaspora') {
$versionCounts = self::reformaDiasporaVersions($versionCounts);
} elseif ($platform == 'relay') {
$versionCounts = self::reformaRelayVersions($versionCounts);
$versionCounts = self::reformatRelayVersions($versionCounts);
} elseif (in_array($platform, ['funkwhale', 'mastodon', 'mobilizon', 'misskey'])) {
$versionCounts = self::removeVersionSuffixes($versionCounts);
}
@ -306,7 +306,7 @@ class Federation extends BaseAdmin
* @param array $versionCounts list of version numbers
* @return array with cleaned version numbers
*/
private static function reformaRelayVersions(array $versionCounts)
private static function reformatRelayVersions(array $versionCounts)
{
$compacted = [];
foreach ($versionCounts as $key => $value) {