]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Pleroma was detected as Mastodon
authorMichael <heluecht@pirati.ca>
Mon, 18 Sep 2017 06:09:18 +0000 (06:09 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 18 Sep 2017 06:09:18 +0000 (06:09 +0000)
include/socgraph.php

index 081290d8106448b82b69e928d5bfdf92655b8468..f0a855d70c9d91412bca5c480af4a5a5b2055f18 100644 (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));
                }
        }