Revert "entity_normalizer: Escape name when parsing user"

This reverts commit e32ae82441.
This commit is contained in:
Zero 2022-02-19 18:16:11 -05:00
parent 2d43adb6e5
commit df8bf08f46
2 changed files with 3 additions and 4 deletions

View file

@ -24,7 +24,7 @@ library.add(
const ProfileTab = {
data () {
return {
newName: this.$store.state.users.currentUser.name_unescaped,
newName: this.$store.state.users.currentUser.name,
newBio: unescape(this.$store.state.users.currentUser.description),
newLocked: this.$store.state.users.currentUser.locked,
newNoRichText: this.$store.state.users.currentUser.no_rich_text,

View file

@ -54,9 +54,8 @@ export const parseUser = (data) => {
return output
}
output.name = escape(data.display_name)
output.name_html = output.name
output.name_unescaped = data.display_name
output.name = data.display_name
output.name_html = addEmojis(escape(data.display_name), data.emojis)
output.description = data.note
output.description_html = addEmojis(data.note, data.emojis)