mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 21:16:08 +08:00
72648dd576
The user may have changed their category or tag tracking settings since a topic was tracked/watched based on those settings in the past. In that case we need to alter the reason message we show them otherwise it is very confusing for the end user to be told they are tracking a topic because of a category, when they are no longer tracking that category. For example: "You will see a count of new replies because you are tracking this category." becomes: "You will see a count of new replies because you were tracking this category in the past." To do this, it was necessary to add tag and category tracking info to current user serializer. I improved the serializer code so it only does 3 SQL queries instead of 9 to get the tracking information for tags and categories for the current user. |
||
---|---|---|
.. | ||
category-drop | ||
color-palettes | ||
combo-box | ||
dropdown-select-box | ||
future-date-input-selector | ||
mini-tag-chooser | ||
multi-select | ||
notifications-filter | ||
period-chooser | ||
select-kit | ||
tag-drop | ||
toolbar-popup-menu-options | ||
user-chooser | ||
category-row.hbs | ||
create-color-row.hbs | ||
email-group-user-chooser-header.hbs | ||
email-group-user-chooser-row.hbs | ||
multi-select.hbs | ||
pinned-button.hbs | ||
selected-name.hbs | ||
single-select.hbs | ||
tag-chooser-row.hbs | ||
tag-row.hbs | ||
topic-notifications-button.hbs |