mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:00:15 +00:00
Small fixes
This commit is contained in:
parent
c21cbd936e
commit
b7f12051a8
1 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ class Federation extends BaseAdmin
|
|||
} elseif (in_array($gserver['platform'], ['osada', 'mistpark', 'roadhouse', 'zap'])) {
|
||||
$version['version'] = $gserver['platform'] . ' ' . $version['version'];
|
||||
} elseif (in_array($gserver['platform'], ['activityrelay', 'pub-relay', 'selective-relay', 'aoderelay'])) {
|
||||
$version['version'] = $gserver['platform'] . '-' . $version['version'];
|
||||
$version['version'] = $gserver['platform'] . '-' . $version['version'];
|
||||
}
|
||||
|
||||
$versionCounts[] = $version;
|
||||
|
@ -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