ted
(Ted Johansson)
23 Abril, 2025 08:39
19
¡Hola!
Acabamos de fusionar una corrección que hace que, mientras se está en modo anónimo, se respete el estado “silenciado” de la cuenta del propietario aquí:
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 Me gusta