refs #199 Post toot with visibility level

This commit is contained in:
AkiraFukushima 2018-04-11 23:19:25 +09:00
parent 51e6f891ac
commit 01e62265bf
1 changed files with 3 additions and 1 deletions

View File

@ -60,6 +60,7 @@ export default {
},
attachedMedias: state => state.TimelineSpace.Modals.NewToot.attachedMedias,
blockSubmit: state => state.TimelineSpace.Modals.NewToot.blockSubmit,
visibility: state => state.TimelineSpace.Modals.NewToot.visibility,
visibilityIcon: (state) => {
switch (state.TimelineSpace.Modals.NewToot.visibility) {
case 'public':
@ -114,7 +115,8 @@ export default {
})
}
let form = {
status: this.status
status: this.status,
visibility: this.visibility
}
if (this.replyToId !== null) {
form = Object.assign(form, {