discourse/app
Krzysztof Kotlarek da2a61e36c
FIX: correct tracking when mute all categories (#11441)
Currently, we have a solution for muted topics. Basically, when a post is created first we send a `muted` message to users who muted that specific topic:

https://github.com/discourse/discourse/blob/master/app/models/topic_tracking_state.rb#L91

Later, topic tracking state filters if the topic is muted or not before update state:

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/models/topic-tracking-state.js#L58:L67

That solution works quite well.

I wanted to extend it to handle `mute all categories by default` setting as well.

In that case, we should only inform the user about new topic/post when they explicitly want to.

If that setting is enabled, we would send "unmuted" message to a user who watches specific category, topic or tag. In all other cases, don't inform user about new topic as all categories are muted by default.

Meta: https://meta.discourse.org/t/threads-muted-by-mute-all-by-default-are-showing-up-as-new-but-not-visible/168324
2020-12-10 16:49:05 +11:00
..
assets FIX: correct tracking when mute all categories (#11441) 2020-12-10 16:49:05 +11:00
controllers PERF: run user merging task in a background job. (#10961) 2020-12-10 15:52:08 +11:00
helpers UX: Use appropriate logo on static pages (#11211) 2020-11-12 10:50:55 -08:00
jobs PERF: run user merging task in a background job. (#10961) 2020-12-10 15:52:08 +11:00
mailers FIX: Ensure group SMTP and message builder always uses from address for Reply-To when IMAP is enabled (#11037) 2020-10-28 07:01:58 +10:00
models FIX: correct tracking when mute all categories (#11441) 2020-12-10 16:49:05 +11:00
serializers FIX: Don't raise an error if a custom emoji image was deleted 2020-12-09 15:40:40 -05:00
services PERF: run user merging task in a background job. (#10961) 2020-12-10 15:52:08 +11:00
views Move CSS link tags above JS in the head 2020-11-17 09:57:30 -05:00