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

main
Alibek Omarov 5 years ago
parent 0a516eaf13
commit cdc3dafdda
  1. 4
      app/src/main/java/com/keylesspalace/tusky/entity/Instance.kt

@ -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 (

Loading…
Cancel
Save