ted
(Ted Johansson)
23. April 2025 um 08:39
19
Hallo!
Wir haben gerade einen Fix zusammengeführt, der dafür sorgt, dass im anonymen Modus der Status „stummgeschaltet“ des Eigentümerkontos hier respektiert wird:
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 „Gefällt mir“