[backend/api] Fix incorrect rate limits being applied to note thread mute endpoints

This commit is contained in:
Laura Hausmann 2024-10-27 22:54:22 +01:00
parent df587e417d
commit 1bc3fc9b39
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -459,7 +459,7 @@ public class NoteController(
[HttpPost("{id}/mute")] [HttpPost("{id}/mute")]
[Authenticate] [Authenticate]
[Authorize] [Authorize]
[EnableRateLimiting("strict")] [EnableRateLimiting("sliding")]
[ProducesResults(HttpStatusCode.OK)] [ProducesResults(HttpStatusCode.OK)]
[ProducesErrors(HttpStatusCode.NotFound)] [ProducesErrors(HttpStatusCode.NotFound)]
public async Task MuteNoteThread(string id) public async Task MuteNoteThread(string id)
@ -485,7 +485,7 @@ public class NoteController(
[HttpPost("{id}/unmute")] [HttpPost("{id}/unmute")]
[Authenticate] [Authenticate]
[Authorize] [Authorize]
[EnableRateLimiting("strict")] [EnableRateLimiting("sliding")]
[ProducesResults(HttpStatusCode.OK)] [ProducesResults(HttpStatusCode.OK)]
[ProducesErrors(HttpStatusCode.NotFound)] [ProducesErrors(HttpStatusCode.NotFound)]
public async Task UnmuteNoteThread(string id) public async Task UnmuteNoteThread(string id)