ted
(Ted Johansson)
Abril 23, 2025, 8:39am
19
Olá!
Acabamos de mesclar uma correção que garante que, enquanto estiver no modo anônimo, o status “silenciado” da conta do proprietário seja respeitado aqui:
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 curtidas