From ce379e86214e55a3d5ea63d28ee73a3abc452eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Thu, 23 Oct 2025 15:53:41 +0200 Subject: [PATCH] pl-fe: remove deprecated mute duration handling for pleroma MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/actions/accounts.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/pl-fe/src/actions/accounts.ts b/packages/pl-fe/src/actions/accounts.ts index 04f064a14..71b74a1d6 100644 --- a/packages/pl-fe/src/actions/accounts.ts +++ b/packages/pl-fe/src/actions/accounts.ts @@ -1,8 +1,8 @@ import { - PLEROMA, type UpdateNotificationSettingsParams, type CreateAccountParams, type Relationship, + type MuteAccountParams, } from 'pl-api'; import { queryClient } from 'pl-fe/queries/client'; @@ -123,18 +123,12 @@ const muteAccount = (accountId: string, notifications?: boolean, duration = 0) = const client = getClient(getState); - const params: Record = { + const params: MuteAccountParams = { notifications, }; if (duration) { - const v = client.features.version; - - if (v.software === PLEROMA) { - params.expires_in = duration; - } else { - params.duration = duration; - } + params.duration = duration; } return client.filtering.muteAccount(accountId, params)