Skip to content

Commit

Permalink
feat: cwが空を許容するかチェックするためのフィールドを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
pantasystem committed Nov 29, 2023
1 parent 73b2e67 commit 12427eb
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,13 @@ sealed interface InstanceInfoType {
is Pleroma -> Version(info.version)
}
}

val isCwAllowBlank: Boolean get() {
return when(this) {
is Firefish -> true
is Mastodon -> false
is Misskey -> meta.getVersion() >= Version("2023.11.0") || meta.getVersion() >= Version("")
is Pleroma -> true
}
}
}

0 comments on commit 12427eb

Please sign in to comment.