summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkFollowButton.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-05-15 19:08:46 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-05-15 19:08:46 +0900
commit23f106a0c1d16e821a712d39be1c90d17cd6c901 (patch)
tree32b18e62d878d32be3656ccb28c12fc15fc75fdb /packages/frontend/src/components/MkFollowButton.vue
parentchore(frontend): 設定画面を整理 (diff)
downloadmisskey-23f106a0c1d16e821a712d39be1c90d17cd6c901.tar.gz
misskey-23f106a0c1d16e821a712d39be1c90d17cd6c901.tar.bz2
misskey-23f106a0c1d16e821a712d39be1c90d17cd6c901.zip
refactor(frontend): boot分割したり副作用減らしたりとか
#10838
Diffstat (limited to 'packages/frontend/src/components/MkFollowButton.vue')
-rw-r--r--packages/frontend/src/components/MkFollowButton.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkFollowButton.vue b/packages/frontend/src/components/MkFollowButton.vue
index beee21c647..7d066fd033 100644
--- a/packages/frontend/src/components/MkFollowButton.vue
+++ b/packages/frontend/src/components/MkFollowButton.vue
@@ -33,7 +33,7 @@
import { onBeforeUnmount, onMounted } from 'vue';
import * as Misskey from 'misskey-js';
import * as os from '@/os';
-import { stream } from '@/stream';
+import { useStream } from '@/stream';
import { i18n } from '@/i18n';
import { claimAchievement } from '@/scripts/achievements';
import { $i } from '@/account';
@@ -50,7 +50,7 @@ const props = withDefaults(defineProps<{
let isFollowing = $ref(props.user.isFollowing);
let hasPendingFollowRequestFromYou = $ref(props.user.hasPendingFollowRequestFromYou);
let wait = $ref(false);
-const connection = stream.useChannel('main');
+const connection = useStream().useChannel('main');
if (props.user.isFollowing == null) {
os.api('users/show', {