diff --git a/mastodon/src/main/java/org/joinmastodon/android/model/Instance.java b/mastodon/src/main/java/org/joinmastodon/android/model/Instance.java index fc76f5aeee..c3d0179134 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/model/Instance.java +++ b/mastodon/src/main/java/org/joinmastodon/android/model/Instance.java @@ -146,8 +146,12 @@ public CatalogInstance toCatalogInstance(){ return ci; } + // This method has almost exclusively been used to improve support for + // Akkoma with no regard for Pleroma, hence its name. However, it is + // more likely than not that most uses should also apply to Pleroma, + // so checking for that too probably causes more good than harm. public boolean isAkkoma() { - return pleroma != null; + return version.contains("compatible; Akkoma") || version.contains("compatible; Pleroma"); } public boolean isPixelfed() {