From 939af853e65675076d78b7cc63b2c9343e5bcd3b Mon Sep 17 00:00:00 2001 From: Essem Date: Sun, 11 Aug 2024 16:28:43 -0500 Subject: [PATCH] [Glitch] Fix extra slash on notification policy request Port 2e03dc9fbf932cd4ea42b7dd7a20dd48b21c73b9 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/api/notification_policies.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/api/notification_policies.ts b/app/javascript/flavours/glitch/api/notification_policies.ts index 1db79a6e74..48b78f96fc 100644 --- a/app/javascript/flavours/glitch/api/notification_policies.ts +++ b/app/javascript/flavours/glitch/api/notification_policies.ts @@ -2,8 +2,8 @@ import { apiRequestGet, apiRequestPut } from 'flavours/glitch/api'; import type { NotificationPolicyJSON } from 'flavours/glitch/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);