mirror of
https://github.com/tateisu/SubwayTooter
synced 2025-02-01 11:26:48 +01:00
ログインフォームで short_description もHTMLデコードする
This commit is contained in:
parent
aa97c18891
commit
ae67fe6dae
@ -243,14 +243,17 @@ class LoginForm(
|
||||
}
|
||||
else -> {
|
||||
textColor = attrColor(R.attr.colorTextContent)
|
||||
text = tootInstance.short_description.notBlank()
|
||||
?: DecodeOptions(
|
||||
applicationContext,
|
||||
LinkHelper.create(tootInstance),
|
||||
forceHtml = true,
|
||||
short = true,
|
||||
).decodeHTML(tootInstance.description)
|
||||
.replace("""\n[\s\n]+""".toRegex(),"\n")
|
||||
text = (tootInstance.short_description.notBlank()
|
||||
?: tootInstance.description.notBlank()
|
||||
?: "(empty server description)"
|
||||
).let {
|
||||
DecodeOptions(
|
||||
applicationContext,
|
||||
LinkHelper.create(tootInstance),
|
||||
forceHtml = true,
|
||||
short = true,
|
||||
).decodeHTML(it)
|
||||
}.replace("""\n[\s\n]+""".toRegex(), "\n")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user