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 0a516eaf13
commit cdc3dafdda
1 changed files with 4 additions and 0 deletions

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 (