[backend/api] Fix incorrect rate limits being applied to note thread mute endpoints
This commit is contained in:
parent
df587e417d
commit
1bc3fc9b39
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue