Instance: a way to check if we have Pleroma with Mastodon API extensions

This commit is contained in:
Alibek Omarov 2019-12-08 06:00:15 +03:00
parent bac3003182
commit 5fa65a4b18

View File

@ -43,6 +43,10 @@ data class Instance (
val instance = other as Instance?
return instance?.uri.equals(uri)
}
fun isPleroma(): Boolean {
return version.contains(" (compatible; Pleroma ");
}
}
data class PollLimits (