From df8bf08f46eb188c09d8c2a96a20654ba1a1baed Mon Sep 17 00:00:00 2001 From: Zero Date: Sat, 19 Feb 2022 18:16:11 -0500 Subject: [PATCH] Revert "entity_normalizer: Escape name when parsing user" This reverts commit e32ae82441e19bff6e7cc3e6e79ece8daea1acac. --- src/components/settings_modal/tabs/profile_tab.js | 2 +- src/services/entity_normalizer/entity_normalizer.service.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/settings_modal/tabs/profile_tab.js b/src/components/settings_modal/tabs/profile_tab.js index 64079fcd..9709424c 100644 --- a/src/components/settings_modal/tabs/profile_tab.js +++ b/src/components/settings_modal/tabs/profile_tab.js @@ -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, diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js index 88c9d337..a4ddf927 100644 --- a/src/services/entity_normalizer/entity_normalizer.service.js +++ b/src/services/entity_normalizer/entity_normalizer.service.js @@ -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)