FIX: Multiply ratelimiter leniency for own discobot certs (PR #13639)

Due to the reality of getting multiple completion certificates in the same PM thread, the ratelimit needs to be at least 4 burst (2 requests twice). Go overboard and bump it to 30 burst if you’re viewing your own completion certificate.

GitHub

the ratelimit needs to be at least 4 burst (2 requests twice)

I’m not too familiar with RateLimiter and its lua-ness :wink: Does max=3 and secs=1.minute satisfy this requirement or should it be max=4?

I kept that at the old value, because non staff users viewing others’ completion certificates should be rare. Only being more lenient for your own. This is also what anonymous users get. I will admit it’s not backed by data.

This pull request has been mentioned on Discourse Meta. There might be relevant details there: