Merge branch 'more-fixes' into shigusegubu-themes3
This commit is contained in:
commit
77b5fe003e
4 changed files with 4 additions and 22 deletions
|
|
@ -468,7 +468,7 @@ const afterStoreSetup = async ({ pinia, store, storageError, i18n }) => {
|
||||||
app.use(pinia)
|
app.use(pinia)
|
||||||
|
|
||||||
app.config.errorHandler = (error, instance, info) => {
|
app.config.errorHandler = (error, instance, info) => {
|
||||||
console.error('GLOBAL ERROR HANDLER', error, instance, info)
|
console.error('Global Vue Error Handler caught an error:', error, instance, info)
|
||||||
useInterfaceStore().setGlobalError({ error, instance, info })
|
useInterfaceStore().setGlobalError({ error, instance, info })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,15 +69,6 @@ const Draft = {
|
||||||
localCollapseSubjectDefault() {
|
localCollapseSubjectDefault() {
|
||||||
return useMergedConfigStore().mergedConfig.collapseMessageWithSubject
|
return useMergedConfigStore().mergedConfig.collapseMessageWithSubject
|
||||||
},
|
},
|
||||||
nsfwClickthrough() {
|
|
||||||
if (!this.draft.nsfw) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if (this.draft.summary && this.localCollapseSubjectDefault) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
editing(newVal) {
|
editing(newVal) {
|
||||||
|
|
|
||||||
|
|
@ -69,15 +69,6 @@ const StatusContent = {
|
||||||
(this.mergedConfig.hideAttachmentsInConv && this.inConversation))
|
(this.mergedConfig.hideAttachmentsInConv && this.inConversation))
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
nsfwClickthrough() {
|
|
||||||
if (!this.status.nsfw) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if (this.status.summary && this.mergedConfig.collapseMessageWithSubject) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
attachmentSize() {
|
attachmentSize() {
|
||||||
if (this.compact) {
|
if (this.compact) {
|
||||||
return 'small'
|
return 'small'
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
v-if="status.attachments.length !== 0"
|
v-if="status.attachments.length !== 0"
|
||||||
class="attachments media-body"
|
class="attachments media-body"
|
||||||
:compact="compact"
|
:compact="compact"
|
||||||
:nsfw="nsfwClickthrough"
|
:nsfw="status.nsfw"
|
||||||
:attachments="status.attachments"
|
:attachments="status.attachments"
|
||||||
:limit="compact ? 1 : 0"
|
:limit="compact ? 1 : 0"
|
||||||
:size="attachmentSize"
|
:size="attachmentSize"
|
||||||
|
|
@ -45,10 +45,10 @@
|
||||||
v-if="statusCard && !compact"
|
v-if="statusCard && !compact"
|
||||||
class="link-preview media-body"
|
class="link-preview media-body"
|
||||||
>
|
>
|
||||||
<link-preview
|
<LinkPreview
|
||||||
:card="status.card"
|
:card="status.card"
|
||||||
:size="attachmentSize"
|
:size="attachmentSize"
|
||||||
:nsfw="nsfwClickthrough"
|
:nsfw="status.nsfw"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</StatusBody>
|
</StatusBody>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue