Skip to content

Commit

Permalink
マージミス
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Feb 8, 2024
1 parent ef76220 commit 0e2e4c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/frontend/src/components/MkApprovalUser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import MkFolder from '@/components/MkFolder.vue';
import MkButton from '@/components/MkButton.vue';
import { i18n } from '@/i18n.js';
import * as os from '@/os.js';
import { misskeyApi } from '@/scripts/misskey-api.js';

const props = defineProps<{
user: Misskey.entities.User;
Expand All @@ -47,7 +48,7 @@ const reason = ref('');
const email = ref('');

function getReason() {
return os.api('admin/show-user', {
return misskeyApi('admin/show-user', {
userId: props.user.id,
}).then(info => {
reason.value = info.signupReason;
Expand Down Expand Up @@ -93,7 +94,7 @@ async function approveAccount() {
text: i18n.ts.registerApproveConfirmDescription,
});
if (confirm.canceled) return;
await os.api('admin/approve-user', { userId: props.user.id });
await misskeyApi('admin/approve-user', { userId: props.user.id });
emits('deleted', props.user.id);
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/admin/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ misskeyApi('admin/abuse-user-reports', {
if (reports.length > 0) thereIsUnresolvedAbuseReport.value = true;
});

os.api('admin/show-users', {
misskeyApi('admin/show-users', {
state: 'approved',
origin: 'local',
limit: 1,
Expand Down

0 comments on commit 0e2e4c3

Please sign in to comment.