fix: some minor problems

This commit is contained in:
ASTRO:? 2024-12-22 22:42:24 +09:00
parent 3ea35434db
commit 86e344bb88
No known key found for this signature in database
GPG key ID: 8947F3AF5B0B4BFE
4 changed files with 7 additions and 5 deletions

View file

@ -15,6 +15,8 @@ export const meta = {
tags: ['users'],
requireCredential: false,
allowGet: true,
cacheSec: 60,
description: 'List up the users of ending credits.',
@ -36,8 +38,7 @@ export const meta = {
export const paramDef = {
type: 'object',
properties: {
},
properties: {},
required: [],
} as const;

View file

@ -181,7 +181,7 @@ export const navbarItemDef = reactive({
support: {
title: i18n.tsx.supportThisInstance({ name: instance.name ?? host }),
icon: 'ti ti-pig-money',
to: 'https://go.misskey.io/donate',
to: 'https://patreon.com/nrmaa',
},
cacheClear: {
title: i18n.ts.clearCache,

View file

@ -221,7 +221,7 @@ const instanceColor = computed(() => {
};
});
staffs.value = await misskeyApi('users/credits', {});
staffs.value = await misskeyApiGet('users/credits');
watch(tab, () => {
if (tab.value === 'charts') {

View file

@ -40,7 +40,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
</div>
<MkError v-else-if="error && iAmModerator" @retry="fetchNote()"/>
<MkNoteNotFound v-else-if="!isFetching || note == null || note?.isHidden || error"/>
<MkNoteNotFound v-else-if="!isFetching && (note == null || note?.isHidden || error)"/>
<MkLoading v-else/>
</Transition>
</div>
@ -120,6 +120,7 @@ function fetchNote() {
showPrev.value = false;
showNext.value = false;
note.value = null;
isFetching = true;
misskeyApi('notes/show', {
noteId: props.noteId,
}).then(res => {