Carry forward content warnings in replies

This commit is contained in:
Vivian Lim 2018-06-27 23:55:29 -07:00 committed by Vivian Lim
parent 0554cac113
commit b3e122d31f
2 changed files with 11 additions and 3 deletions

View file

@ -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
}

View file

@ -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>