Small fixes
This commit is contained in:
parent
c21cbd936e
commit
b7f12051a8
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue