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', 'replyTo',
'repliedUser', 'repliedUser',
'attentions', 'attentions',
'messageScope' 'messageScope',
'parentSpoilerText'
], ],
components: { components: {
MediaUpload MediaUpload
@ -50,7 +51,8 @@ const PostStatusForm = {
newStatus: { newStatus: {
status: statusText, status: statusText,
files: [], files: [],
visibility: this.messageScope || 'public' visibility: this.messageScope || 'public',
spoilerText: this.parentSpoilerText || null
}, },
caret: 0 caret: 0
} }

View file

@ -105,7 +105,13 @@
</div> </div>
<div class="container" v-if="replying"> <div class="container" v-if="replying">
<div class="reply-left"/> <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> </div>
</template> </template>
</div> </div>