From e77931d68c73341f33c425a63bd68c0a5ea2488d Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Thu, 10 Nov 2022 12:06:59 +0000 Subject: [PATCH] Use correct sensitiveIfSubject key --- src/components/post_status_form/post_status_form.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index ab74f3fa..cb3f8499 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -148,7 +148,7 @@ const PostStatusForm = { spoilerText: this.subject || '', status: this.statusText || '', sensitiveIfSubject, - nsfw: this.statusIsSensitive || !!sensitiveByDefault, + nsfw: this.statusIsSensitive || (sensitiveIfSubject && this.subject) || !!sensitiveByDefault, files: this.statusFiles || [], poll: this.statusPoll || {}, mediaDescriptions: this.statusMediaDescriptions || {}, @@ -418,7 +418,7 @@ const PostStatusForm = { addMediaFile (fileInfo) { this.newStatus.files.push(fileInfo) - if (this.newStatus.sensitiveIfSubject && this.newStatus.spoilerText !== '') { + if (this.$store.getters.mergedConfig.sensitiveIfSubject && this.newStatus.spoilerText !== '') { this.newStatus.nsfw = true } this.$emit('resize', { delayed: true }) @@ -498,7 +498,7 @@ const PostStatusForm = { }) }, onSubjectInput (e) { - if (this.newStatus.sensitiveIfSubject) { + if (this.$store.getters.mergedConfig.sensitiveIfSubject) { this.newStatus.nsfw = true } },