fix nsfw state
This commit is contained in:
parent
c94c54f4c8
commit
436db2a9d8
3 changed files with 3 additions and 21 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue