diff --git a/app/src/main/java/jp/juggler/subwaytooter/actpost/ActPostCharCount.kt b/app/src/main/java/jp/juggler/subwaytooter/actpost/ActPostCharCount.kt index 86937d14..6ff26d83 100644 --- a/app/src/main/java/jp/juggler/subwaytooter/actpost/ActPostCharCount.kt +++ b/app/src/main/java/jp/juggler/subwaytooter/actpost/ActPostCharCount.kt @@ -39,6 +39,12 @@ private fun ActPost.getMaxCharCount(): Int { // fall thru } + info?.configuration + ?.jsonObject("statuses") + ?.int("max_characters") + ?.takeIf { it > 0 } + ?.let { return it } + info?.max_toot_chars ?.takeIf { it > 0 } ?.let { return it }