aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/post_status_form/post_status_form.js6
-rw-r--r--src/components/status/status.vue8
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>