diff options
| author | Shpuld Shpludson <shp@cock.li> | 2019-02-09 20:47:29 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2019-02-09 20:47:29 +0000 |
| commit | 4bea3c525f377a45919893ae0a474859b5744820 (patch) | |
| tree | c622d917820f36f5ca78cbd53c59121f99294e88 /src | |
| parent | cf10fd623bc2978d6b3ce770dfe4675c813df858 (diff) | |
| parent | 0a435465641da60ccc656cf5a0b79a50132243ae (diff) | |
Merge branch 'fix/subject-copying-composition-bug' into 'develop'
#326 Subject copying composition bug
See merge request pleroma/pleroma-fe!550
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/status/status.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 8181b0db..1e2b8794 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -11,7 +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 { filter, find, unescape } from 'lodash' const Status = { name: 'Status', @@ -209,14 +209,15 @@ const Status = { }, replySubject () { if (!this.status.summary) return '' + 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 - const startsWithRe = this.status.summary.match(/^re[: ]/i) + const startsWithRe = decodedSummary.match(/^re[: ]/i) if (behavior !== 'noop' && startsWithRe || behavior === 'masto') { - return this.status.summary + return decodedSummary } else if (behavior === 'email') { - return 're: '.concat(this.status.summary) + return 're: '.concat(decodedSummary) } else if (behavior === 'noop') { return '' } |
