(Mastodon)Misskeyから流れてきた空欄CWをそれと分かるように表示する
This commit is contained in:
parent
55d8a32120
commit
6535575ba3
|
@ -453,7 +453,12 @@ class TootStatus(parser : TootParser, src : JSONObject) : TimelineItem() {
|
||||||
this.highlight_sound = options.highlight_sound
|
this.highlight_sound = options.highlight_sound
|
||||||
}
|
}
|
||||||
|
|
||||||
this.spoiler_text = (src.parseString("spoiler_text") ?: "").cleanCW()
|
val sv = (src.parseString("spoiler_text")?:"").cleanCW()
|
||||||
|
this.spoiler_text = when{
|
||||||
|
sv.isEmpty() ->"" // CWなし
|
||||||
|
sv.isBlank() ->parser.context.getString(R.string.blank_cw)
|
||||||
|
else->sv
|
||||||
|
}
|
||||||
|
|
||||||
options = DecodeOptions(
|
options = DecodeOptions(
|
||||||
parser.context,
|
parser.context,
|
||||||
|
|
Loading…
Reference in New Issue