aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorVivian Lim <vivlim@pm.me>2018-06-28 21:39:25 -0700
committerVivian Lim <vvnl@pm.me>2018-06-28 23:39:55 -0700
commitb0cf050797702d6a7cc921c71b27cecb5ce234c6 (patch)
treef979935b07ac3d53b5cd441aab3416c4ea1a89a6 /src/components/status/status.js
parentab86e87e85afa3db390503821165cece64c39a3a (diff)
Add configuration option to enable click-through content warnings
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 9f88d38c..4e242701 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -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,