From f75ec48a8029a9c142bb09b3f76b14c956863ea3 Mon Sep 17 00:00:00 2001 From: jasper Date: Sat, 9 Feb 2019 04:13:52 -0800 Subject: Switch into Lodash --- src/components/status/status.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/components/status/status.js b/src/components/status/status.js index 68d02ce3..3e6247df 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -11,8 +11,7 @@ import generateProfileLink from 'src/services/user_profile_link_generator/user_p import fileType from 'src/services/file_type/file_type.service' import { highlightClass, highlightStyle } from '../../services/user_highlighter/user_highlighter.js' import { mentionMatchesUrl } from 'src/services/mention_matcher/mention_matcher.js' -import { filter, find } from 'lodash' -import entities from 'entities' +import { filter, find, unescape } from 'lodash' const Status = { name: 'Status', @@ -197,12 +196,12 @@ const Status = { } if (this.status.summary && this.localCollapseSubjectDefault) { return false - } + } return true }, replySubject () { if (!this.status.summary) return '' - const decodedSummary = entities.decodeHTML(this.status.summary) + const decodedSummary = unescape(this.status.summary) const behavior = typeof this.$store.state.config.subjectLineBehavior === 'undefined' ? this.$store.state.instance.subjectLineBehavior : this.$store.state.config.subjectLineBehavior -- cgit v1.2.3-70-g09d2