summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkFollowButton.vue
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend/src/components/MkFollowButton.vue')
-rw-r--r--packages/frontend/src/components/MkFollowButton.vue9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/frontend/src/components/MkFollowButton.vue b/packages/frontend/src/components/MkFollowButton.vue
index c1dc67f776..bd45df843a 100644
--- a/packages/frontend/src/components/MkFollowButton.vue
+++ b/packages/frontend/src/components/MkFollowButton.vue
@@ -45,7 +45,8 @@ import { i18n } from '@/i18n.js';
import { claimAchievement } from '@/scripts/achievements.js';
import { pleaseLogin } from '@/scripts/please-login.js';
import { $i } from '@/account.js';
-import { defaultStore } from '@/store.js';
+import { store } from '@/store.js';
+import { prefer } from '@/preferences.js';
const props = withDefaults(defineProps<{
user: Misskey.entities.UserDetailed,
@@ -100,7 +101,7 @@ async function onClick() {
userId: props.user.id,
});
} else {
- if (defaultStore.state.alwaysConfirmFollow) {
+ if (prefer.s.alwaysConfirmFollow) {
const { canceled } = await os.confirm({
type: 'question',
text: i18n.tsx.followConfirm({ name: props.user.name || props.user.username }),
@@ -120,11 +121,11 @@ async function onClick() {
} else {
await misskeyApi('following/create', {
userId: props.user.id,
- withReplies: defaultStore.state.defaultWithReplies,
+ withReplies: store.state.defaultWithReplies,
});
emit('update:user', {
...props.user,
- withReplies: defaultStore.state.defaultWithReplies,
+ withReplies: store.state.defaultWithReplies,
});
hasPendingFollowRequestFromYou.value = true;