From 52ce86ed573deede5e762f4096ef02ee87b04e88 Mon Sep 17 00:00:00 2001 From: scarlett Date: Sun, 26 Aug 2018 00:21:54 +0100 Subject: [PATCH] Don't use nsfw clickthrough if the post is collapsed by default. --- src/components/status/status.js | 9 +++++++++ src/components/status/status.vue | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/status/status.js b/src/components/status/status.js index 11b8feba..7aa1e03b 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -164,6 +164,15 @@ const Status = { showingMore () { return this.showingTall || (this.status.summary && this.expandingSubject) }, + nsfwClickthrough () { + if (!this.status.nsfw) { + return false + } + if (this.status.summary && this.$store.state.config.collapseMessageWithSubject) { + return false + } + return true + }, attachmentSize () { if ((this.$store.state.config.hideAttachments && !this.inConversation) || (this.$store.state.config.hideAttachmentsInConv && this.inConversation)) { diff --git a/src/components/status/status.vue b/src/components/status/status.vue index e8951220..c7ef92a2 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -84,7 +84,7 @@
- +