Add configuration option to enable click-through content warnings

This commit is contained in:
Vivian Lim 2018-06-28 21:39:25 -07:00 committed by Vivian Lim
parent ab86e87e85
commit b0cf050797
4 changed files with 16 additions and 8 deletions

View file

@ -29,7 +29,7 @@ const Status = {
preview: null,
showPreview: false,
showingTall: false,
showingContentWarningContent: false
showingContentWarningContent: false
}),
computed: {
muteWords () {
@ -93,7 +93,10 @@ const Status = {
return 'small'
}
return 'normal'
}
},
clickThroughContentWarningsEnabled () {
return this.$store.state.config.clickThroughContentWarningsEnabled
},
},
components: {
Attachment,