davidb
(David B)
Juillet 17, 2025, 4:57
14
Merci d’avoir signalé le problème. J’ai apporté quelques modifications pour simplifier le décompte des messages, car nous comptions auparavant les sujets et les messages séparément.
Je pense que cela devrait résoudre le problème :
committed 02:15PM - 17 Jul 25 UTC
The educational posts site setting (`educate_until_posts`) feels buggy,
this is … because the logic for showing these messages treats topics and
replies (posts) as a separate count.
If `SiteSetting.educate_until_posts` has a value of 2, the user can
write multiple replies to existing topics and see the "Welcome to our
community! You are brand new here..." message for the first 2 times then
it will not show again.
However, once they decide to create a topic they will see the message
again which doesn't feel right.
The solution is to use a combined count (`user.topic_count` and
`user.post_count`) and check against the site setting value. That way we
don't double up educational messages for both topics and replies when
using composer.
2 « J'aime »