diff options
| author | Vivian Lim <vivlim@pm.me> | 2018-06-27 23:55:29 -0700 |
|---|---|---|
| committer | Vivian Lim <vvnl@pm.me> | 2018-06-28 23:39:01 -0700 |
| commit | b3e122d31f95c5a130ce7c41970984502798903c (patch) | |
| tree | fb07d66e635defdbe2a2057129554870e0b164a8 /src | |
| parent | 0554cac113555b948cdad3d9f14ec6f548c93c01 (diff) | |
Carry forward content warnings in replies
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/post_status_form/post_status_form.js | 6 | ||||
| -rw-r--r-- | src/components/status/status.vue | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 4f4c6aca..4f6cee9c 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -24,7 +24,8 @@ const PostStatusForm = { 'replyTo', 'repliedUser', 'attentions', - 'messageScope' + 'messageScope', + 'parentSpoilerText' ], components: { MediaUpload @@ -50,7 +51,8 @@ const PostStatusForm = { newStatus: { status: statusText, files: [], - visibility: this.messageScope || 'public' + visibility: this.messageScope || 'public', + spoilerText: this.parentSpoilerText || null }, caret: 0 } diff --git a/src/components/status/status.vue b/src/components/status/status.vue index cffa8e26..09e6b54d 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -105,7 +105,13 @@ </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" v-on:posted="toggleReplying"/> + <post-status-form class="reply-body" + :reply-to="status.id" + :attentions="status.attentions" + :repliedUser="status.user" + :message-scope="status.visibility" + :parentSpoilerText="status.summary" + v-on:posted="toggleReplying"/> </div> </template> </div> |
