0
0
Fork 0

Add option to ignore filtered notifications to the web interface (#31342)

This commit is contained in:
Claire 2024-08-09 16:21:55 +02:00 committed by GitHub
parent 8a5b57f668
commit 1701575704
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 402 additions and 43 deletions

View file

@ -2,8 +2,8 @@ import { apiRequestGet, apiRequestPut } from 'mastodon/api';
import type { NotificationPolicyJSON } from 'mastodon/api_types/notification_policies';
export const apiGetNotificationPolicy = () =>
apiRequestGet<NotificationPolicyJSON>('/v1/notifications/policy');
apiRequestGet<NotificationPolicyJSON>('/v2/notifications/policy');
export const apiUpdateNotificationsPolicy = (
policy: Partial<NotificationPolicyJSON>,
) => apiRequestPut<NotificationPolicyJSON>('/v1/notifications/policy', policy);
) => apiRequestPut<NotificationPolicyJSON>('/v2/notifications/policy', policy);