From 7e17bdfd8316305280e3faf6c559adfce2e409a2 Mon Sep 17 00:00:00 2001 From: Piotrek Tomczewski Date: Sun, 8 Jan 2023 14:33:25 +0100 Subject: [PATCH] feat(profile): hide user's boosts toogle (#865) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 三咲智子 --- components/account/AccountMoreButton.vue | 22 ++++++++++++++++++++++ locales/en-US.json | 2 ++ 2 files changed, 24 insertions(+) diff --git a/components/account/AccountMoreButton.vue b/components/account/AccountMoreButton.vue index 1d0b8669..d4dc271a 100644 --- a/components/account/AccountMoreButton.vue +++ b/components/account/AccountMoreButton.vue @@ -34,6 +34,13 @@ const toggleBlockDomain = async () => { relationship!.domainBlocking = !relationship!.domainBlocking await masto.v1.domainBlocks[relationship!.domainBlocking ? 'block' : 'unblock'](getServerName(account)) } + +const toggleReblogs = async () => { + // TODO: Add confirmation + + const showingReblogs = !relationship?.showingReblogs + relationship = await masto.v1.accounts.follow(account.id, { reblogs: showingReblogs }) +}