ted
(Ted Johansson)
23 Aprile 2025, 8:39am
19
Ciao!
Abbiamo appena unito una correzione che fa sì che, mentre si è in modalità anonima, lo stato “silenced” dell’account proprietario venga rispettato qui:
main ← fix/anonymous-silenced-users
opened 06:40AM - 23 Apr 25 UTC
### What is the problem?
When a user is silenced they can, given they have th… e permissions, enter anonymous mode and keep posting, essentially bypassing the silence that way.
### How does this fix it?
This change delegates the `silenced_till` attribute to the main user record if the user is anonymous.
### Trade-offs and alternative approaches
Given anonymous posting is enabled, as of this change, each call to `silenced_till` will produce a minimal query to `anonymous_users` to select one record based on pkey.
The alternative to this is to add logic to update the anonymous record's value when it is created and when a user is silenced or unsilenced.
Given this choice of a theoretical minimal performance impact on a lukewarm path and a significantly more involved implementation, I chose the former.
6 Mi Piace