From 9a941941b00119c3fce4ff722a16b878dec535e0 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Mon, 16 Oct 2023 17:35:22 +0900 Subject: [PATCH] fix(frontend): incorrectly showRepliesToOthersInTimeline can be shown --- packages/frontend/src/components/MkFollowButton.vue | 1 + packages/frontend/src/pages/follow.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/frontend/src/components/MkFollowButton.vue b/packages/frontend/src/components/MkFollowButton.vue index cd8c88f23a..c4103ce3c6 100644 --- a/packages/frontend/src/components/MkFollowButton.vue +++ b/packages/frontend/src/components/MkFollowButton.vue @@ -98,6 +98,7 @@ async function onClick() { userId: props.user.id, withReplies: defaultStore.state.defaultWithReplies, }); + props.user.withReplies = defaultStore.state.defaultWithReplies; hasPendingFollowRequestFromYou = true; claimAchievement('following1'); diff --git a/packages/frontend/src/pages/follow.vue b/packages/frontend/src/pages/follow.vue index 482071e9b4..a0a4a480b5 100644 --- a/packages/frontend/src/pages/follow.vue +++ b/packages/frontend/src/pages/follow.vue @@ -31,6 +31,7 @@ async function follow(user): Promise { userId: user.id, withReplies: defaultStore.state.defaultWithReplies, }); + user.withReplies = defaultStore.state.defaultWithReplies; } const acct = new URL(location.href).searchParams.get('acct');