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 | |
| 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')
| -rw-r--r-- | src/components/status/status.js | 10 | ||||
| -rw-r--r-- | src/components/status/status.vue | 2 |
2 files changed, 9 insertions, 3 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) || diff --git a/src/components/status/status.vue b/src/components/status/status.vue index eb521280..8087d392 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -106,7 +106,7 @@ </div> <div class="container" v-if="replying"> <div class="reply-left"/> - <post-status-form class="reply-body" :reply-to="status.id" :attentions="status.attentions" :repliedUser="status.user" :message-scope="status.visibility" :subject="replySubject" v-on:posted="toggleReplying"/> + <post-status-form class="reply-body" :reply-to="status.id" :attentions="status.attentions" :repliedUser="status.user" :copy-message-scope="status.visibility" :subject="replySubject" v-on:posted="toggleReplying"/> </div> </template> </div> |
