diff options
| author | jasper <jasper92341@hotmail.com> | 2019-02-08 08:25:53 -0800 |
|---|---|---|
| committer | jasper <jasper92341@hotmail.com> | 2019-02-08 08:25:53 -0800 |
| commit | e90e7ce2dbcaa1e585d39028ffcdacc4fa76e817 (patch) | |
| tree | 04abe40cb89ad0a3691f8f52593335028f444bc8 /src | |
| parent | 6a867f6ae38b4bc3981fb6ca402c196a0967c49e (diff) | |
Subject copying composition bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/status/status.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 65ddcb9f..68d02ce3 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -12,6 +12,7 @@ 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' const Status = { name: 'Status', @@ -201,14 +202,15 @@ const Status = { }, replySubject () { if (!this.status.summary) return '' + const decodedSummary = entities.decodeHTML(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 '' } |
