fix nsfw state

This commit is contained in:
Henry Jameson 2026-06-30 06:35:02 +03:00
commit 436db2a9d8
3 changed files with 3 additions and 21 deletions

View file

@ -69,15 +69,6 @@ const Draft = {
localCollapseSubjectDefault() {
return useMergedConfigStore().mergedConfig.collapseMessageWithSubject
},
nsfwClickthrough() {
if (!this.draft.nsfw) {
return false
}
if (this.draft.summary && this.localCollapseSubjectDefault) {
return false
}
return true
},
},
watch: {
editing(newVal) {

View file

@ -69,15 +69,6 @@ const StatusContent = {
(this.mergedConfig.hideAttachmentsInConv && this.inConversation))
)
},
nsfwClickthrough() {
if (!this.status.nsfw) {
return false
}
if (this.status.summary && this.mergedConfig.collapseMessageWithSubject) {
return false
}
return true
},
attachmentSize() {
if (this.compact) {
return 'small'

View file

@ -33,7 +33,7 @@
v-if="status.attachments.length !== 0"
class="attachments media-body"
:compact="compact"
:nsfw="nsfwClickthrough"
:nsfw="status.nsfw"
:attachments="status.attachments"
:limit="compact ? 1 : 0"
:size="attachmentSize"
@ -45,10 +45,10 @@
v-if="statusCard && !compact"
class="link-preview media-body"
>
<link-preview
<LinkPreview
:card="status.card"
:size="attachmentSize"
:nsfw="nsfwClickthrough"
:nsfw="status.nsfw"
/>
</div>
</StatusBody>