summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Tang <750946-dennis@users.noreply.gitlab.com>2019-02-04 12:17:39 +0000
committerDennis Tang <750946-dennis@users.noreply.gitlab.com>2019-02-04 12:17:39 +0000
commit05539f96d6ac738c19f82590c82a7e82f396dccd (patch)
tree22283c48722936d54fd300582fb63891679ab7da
parent977a9de700f6e9d0b51cec99bf223fdf98a0d0ea (diff)
downloadgitlab-ce-dennis-11-6-user-status-message.tar.gz
Update user popover status property to display properly escaped message dennis-11-6-user-status-message
-rw-r--r--app/assets/javascripts/vue_shared/components/user_popover/user_popover.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/vue_shared/components/user_popover/user_popover.vue b/app/assets/javascripts/vue_shared/components/user_popover/user_popover.vue
index fad1a2f3f56..50e8eb82e21 100644
--- a/app/assets/javascripts/vue_shared/components/user_popover/user_popover.vue
+++ b/app/assets/javascripts/vue_shared/components/user_popover/user_popover.vue
@@ -46,10 +46,10 @@ export default {
return null;
},
statusHtml() {
- if (this.user.status.emoji && this.user.status.message) {
- return `${glEmojiTag(this.user.status.emoji)} ${this.user.status.message}`;
- } else if (this.user.status.message) {
- return this.user.status.message;
+ if (this.user.status.emoji && this.user.status.message_html) {
+ return `${glEmojiTag(this.user.status.emoji)} ${this.user.status.message_html}`;
+ } else if (this.user.status.message_html) {
+ return this.user.status.message_html;
}
return '';
},