From 2e03dc9fbf932cd4ea42b7dd7a20dd48b21c73b9 Mon Sep 17 00:00:00 2001 From: Essem Date: Sun, 11 Aug 2024 16:28:43 -0500 Subject: [PATCH] Fix extra slash on notification policy request (#31378) --- app/javascript/mastodon/api/notification_policies.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/api/notification_policies.ts b/app/javascript/mastodon/api/notification_policies.ts index 774739755..3bc817413 100644 --- a/app/javascript/mastodon/api/notification_policies.ts +++ b/app/javascript/mastodon/api/notification_policies.ts @@ -2,8 +2,8 @@ import { apiRequestGet, apiRequestPut } from 'mastodon/api'; import type { NotificationPolicyJSON } from 'mastodon/api_types/notification_policies'; export const apiGetNotificationPolicy = () => - apiRequestGet('/v2/notifications/policy'); + apiRequestGet('v2/notifications/policy'); export const apiUpdateNotificationsPolicy = ( policy: Partial, -) => apiRequestPut('/v2/notifications/policy', policy); +) => apiRequestPut('v2/notifications/policy', policy);