Skip to content
Snippets Groups Projects
  • Erik Johnston's avatar
    963f4309
    Make RateLimiter class check for ratelimit overrides (#9711) · 963f4309
    Erik Johnston authored
    This should fix a class of bug where we forget to check if e.g. the appservice shouldn't be ratelimited.
    
    We also check the `ratelimit_override` table to check if the user has ratelimiting disabled. That table is really only meant to override the event sender ratelimiting, so we don't use any values from it (as they might not make sense for different rate limits), but we do infer that if ratelimiting is disabled for the user we should disabled all ratelimits.
    
    Fixes #9663
    Make RateLimiter class check for ratelimit overrides (#9711)
    Erik Johnston authored
    This should fix a class of bug where we forget to check if e.g. the appservice shouldn't be ratelimited.
    
    We also check the `ratelimit_override` table to check if the user has ratelimiting disabled. That table is really only meant to override the event sender ratelimiting, so we don't use any values from it (as they might not make sense for different rate limits), but we do infer that if ratelimiting is disabled for the user we should disabled all ratelimits.
    
    Fixes #9663