From ea9ad4d600a312b008287d8dabca12f758440495 Mon Sep 17 00:00:00 2001 From: Hazel Koehler Date: Wed, 20 Dec 2023 12:39:31 -0500 Subject: [PATCH] fix "always show content warning" setting --- 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 3bc6dc99..703d8a63 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -138,7 +138,7 @@ const PostStatusForm = { statusText = buildMentionsString({ user: this.repliedUser, attentions: this.attentions }, currentUser) } - const { postContentType: contentType, sensitiveByDefault, sensitiveIfSubject, interfaceLanguage } = this.$store.getters.mergedConfig + const { postContentType: contentType, sensitiveByDefault, sensitiveIfSubject, interfaceLanguage, alwaysShowSubjectInput } = this.$store.getters.mergedConfig let statusParams = { spoilerText: this.subject || '', @@ -200,8 +200,8 @@ const PostStatusForm = { } // When first loading the form, hide the subject (CW) field if it's disabled or doesn't have a starting value. - // "disableSubject" seems to take priority over "alwaysShowSubject" - const showSubject = !this.disableSubject && (statusParams.spoilerText || this.alwaysShowSubject) + // "disableSubject" seems to take priority over "alwaysShowSubjectInput". + const showSubject = !this.disableSubject && (statusParams.spoilerText || alwaysShowSubjectInput) return { dropFiles: [],