From 1bc3fc9b3944310e4917d7fee2f09ffe48fed50f Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sun, 27 Oct 2024 22:54:22 +0100 Subject: [PATCH] [backend/api] Fix incorrect rate limits being applied to note thread mute endpoints --- Iceshrimp.Backend/Controllers/Web/NoteController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Iceshrimp.Backend/Controllers/Web/NoteController.cs b/Iceshrimp.Backend/Controllers/Web/NoteController.cs index 662c075f..d41d2011 100644 --- a/Iceshrimp.Backend/Controllers/Web/NoteController.cs +++ b/Iceshrimp.Backend/Controllers/Web/NoteController.cs @@ -459,7 +459,7 @@ public class NoteController( [HttpPost("{id}/mute")] [Authenticate] [Authorize] - [EnableRateLimiting("strict")] + [EnableRateLimiting("sliding")] [ProducesResults(HttpStatusCode.OK)] [ProducesErrors(HttpStatusCode.NotFound)] public async Task MuteNoteThread(string id) @@ -485,7 +485,7 @@ public class NoteController( [HttpPost("{id}/unmute")] [Authenticate] [Authorize] - [EnableRateLimiting("strict")] + [EnableRateLimiting("sliding")] [ProducesResults(HttpStatusCode.OK)] [ProducesErrors(HttpStatusCode.NotFound)] public async Task UnmuteNoteThread(string id)