diff options
| author | Henry <spam@hjkos.com> | 2018-11-26 01:50:54 +0000 |
|---|---|---|
| committer | Henry <spam@hjkos.com> | 2018-11-26 01:50:54 +0000 |
| commit | 91272dc5558e1326dac872f927dc8da7f9109cd0 (patch) | |
| tree | 42b479fa25d0fe4c39401f9759e2f35323f86b61 /src/components/status/status.js | |
| parent | f1a23f2b6edb0858890c82cf42c8b6d835102d56 (diff) | |
| parent | b948234aec2ec1d140a46303c09d24424262bd66 (diff) | |
Merge branch 'feature/scope_preferences' into 'develop'
Make visibility copying and subject copying configurable
Closes #135
See merge request pleroma/pleroma-fe!353
Diffstat (limited to 'src/components/status/status.js')
| -rw-r--r-- | src/components/status/status.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index f1afcac7..10716583 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -181,10 +181,16 @@ const Status = { return true }, replySubject () { - if (this.status.summary && !this.status.summary.match(/^re[: ]/i)) { + if (!this.status.summary) return '' + const behavior = this.$store.state.config.subjectLineBehavior + const startsWithRe = this.status.summary.match(/^re[: ]/i) + if (behavior !== 'noop' && startsWithRe || behavior === 'masto') { + return this.status.summary + } else if (behavior === 'email') { return 're: '.concat(this.status.summary) + } else if (behavior === 'noop') { + return '' } - return this.status.summary }, attachmentSize () { if ((this.$store.state.config.hideAttachments && !this.inConversation) || |
