Merge pull request 'Fix sensitive by default option' (#443) from norm/akkoma-fe:fix-sensitive into develop

Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma-fe/pulls/443
Reviewed-by: Oneric <oneric@noreply.akkoma>
This commit is contained in:
Oneric 2025-09-07 00:50:15 +00:00
commit 55dff3a9bd
2 changed files with 2 additions and 2 deletions

View file

@ -513,7 +513,7 @@ const PostStatusForm = {
addMediaFile (fileInfo) {
this.newStatus.files.push(fileInfo)
if (this.$store.getters.mergedConfig.sensitiveIfSubject && this.newStatus.spoilerText !== '') {
if (this.$store.getters.mergedConfig.sensitiveIfSubject && this.newStatus.spoilerText !== '' || !!this.$store.getters.mergedConfig.sensitiveByDefault) {
this.newStatus.nsfw = true
}
this.$emit('resize', { delayed: true })

View file

@ -728,7 +728,7 @@
"security": "Security",
"security_tab": "Security",
"sensitive_by_default": "Mark posts as sensitive by default",
"sensitive_if_subject": "Automatically mark images as sensitive if a content warning is specified",
"sensitive_if_subject": "Automatically mark post as sensitive if a content warning is specified",
"set_new_avatar": "Set new avatar",
"set_new_mascot": "Set new mascot",
"set_new_profile_background": "Set new profile background",