From 5ed24954f0522474c6707fba23c1511600f9e6de Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 18 Sep 2017 06:09:18 +0000 Subject: [PATCH] Bugfix: Pleroma was detected as Mastodon --- include/socgraph.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/socgraph.php b/include/socgraph.php index 081290d810..f0a855d70c 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -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)); } } -- 2.39.5