Skip to content
Permalink
Browse files

空欄CWの判定の強化

  • Loading branch information
tateisu committed Jan 11, 2020
1 parent 7ae197d commit 81ff628754504799399e018fa7a6b2088b0c3686
Showing with 4 additions and 1 deletion.
  1. +4 −1 app/src/main/java/jp/juggler/subwaytooter/api/entity/TootStatus.kt
@@ -306,7 +306,10 @@ class TootStatus(parser : TootParser, src : JsonObject) : TimelineItem() {
val sv = src.string("cw")?.cleanCW()
this.spoiler_text = when {
sv == null -> "" // CWなし
sv.isBlank() -> parser.context.getString(R.string.blank_cw)

sv.replace('\u0323',' ').isBlank() ->
parser.context.getString(R.string.blank_cw)

else -> sv
}

0 comments on commit 81ff628

Please sign in to comment.
You can’t perform that action at this time.