From 785c2627a2f413b5ad285b4be431cb6b1adf8d00 Mon Sep 17 00:00:00 2001
From: samunohito <46447427+samunohito@users.noreply.github.com>
Date: Mon, 18 Dec 2023 11:08:22 +0900
Subject: [PATCH] fix api

---
 packages/frontend/src/components/MkVisibilityPicker.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/packages/frontend/src/components/MkVisibilityPicker.vue b/packages/frontend/src/components/MkVisibilityPicker.vue
index 4e877222cb..0b74f0a31e 100644
--- a/packages/frontend/src/components/MkVisibilityPicker.vue
+++ b/packages/frontend/src/components/MkVisibilityPicker.vue
@@ -61,6 +61,7 @@ import * as Misskey from 'misskey-js';
 import MkModal from '@/components/MkModal.vue';
 import { i18n } from '@/i18n.js';
 import * as os from '@/os.js';
+import { api } from '@/scripts/api.js';
 
 const modal = shallowRef<InstanceType<typeof MkModal>>();
 const channelsButton = shallowRef<InstanceType<typeof HTMLButtonElement>>();
@@ -98,7 +99,7 @@ const currentChannel = ref<Misskey.entities.Channel | undefined>(props.currentCh
 const currentChannelName = computed<string | null>(() => currentChannel.value?.name ?? null);
 
 async function fetchChannels() {
-	const res = await os.api('channels/my-favorites', {
+	const res = await api('channels/my-favorites', {
 		limit: 100,
 	});
 	channels.value.splice(0, 0, ...res);