Merge pull request #3713 from annando/pleroma-detection

Bugfix: Pleroma was detected as Mastodon
This commit is contained in:
Tobias Diekershoff 2017-09-18 08:34:45 +02:00 committed by GitHub
commit c993865169

View File

@ -1158,8 +1158,9 @@ function poco_check_server($server_url, $network = "", $force = false) {
$network = NETWORK_OSTATUS;
}
}
if (strstr($orig_version, 'Pleroma')) {
if (strstr($orig_version.$version, 'Pleroma')) {
$platform = 'Pleroma';
$version = trim(str_replace('Pleroma', '', $version));
}
}