Perform unicode text isolation on user names in post edit history view (#3342)

This commit is contained in:
fruyek 2023-02-25 21:27:54 +01:00 committed by GitHub
parent 2e189a17dc
commit d4eb744241
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@ import com.keylesspalace.tusky.util.loadAvatar
import com.keylesspalace.tusky.util.parseAsMastodonHtml import com.keylesspalace.tusky.util.parseAsMastodonHtml
import com.keylesspalace.tusky.util.setClickableText import com.keylesspalace.tusky.util.setClickableText
import com.keylesspalace.tusky.util.show import com.keylesspalace.tusky.util.show
import com.keylesspalace.tusky.util.unicodeWrap
import com.keylesspalace.tusky.util.visible import com.keylesspalace.tusky.util.visible
import com.keylesspalace.tusky.viewdata.toViewData import com.keylesspalace.tusky.viewdata.toViewData
@ -72,7 +73,7 @@ class ViewEditsAdapter(
binding.statusEditInfo.text = context.getString( binding.statusEditInfo.text = context.getString(
infoStringRes, infoStringRes,
edit.account.name, edit.account.name.unicodeWrap(),
timestamp timestamp
).emojify(edit.account.emojis, binding.statusEditInfo, animateEmojis) ).emojify(edit.account.emojis, binding.statusEditInfo, animateEmojis)