discourse/app
David Taylor 5df815c2ee
FIX: New/unread count after dismissing new topics in a regular category (#8659)
6e1fe22 introduced the possiblity for category_users to have a NULL notification_level, so that we can store `last_seen_at` dates without locking the notification level. At the time, this did not affect the topic-tracking-state query. However, the query changes in f434de2 introduced a slight change in behavior.

Previously, a subquery would look for a category_user with notification_level=mute. f434de2 refactored this to remove the subquery, and inverted some of the logic to suit.

The new query checked for `notification_level <> :muted`. If `notification_level` is NULL, this comparison will return NULL. In this scenario, notification_level=NULL means that we should fall back to the default tracking level (regular), and so we want the expression to resolve as true, not false. There was already a check for the existence of the category_users row, but it did not check for the existence of a NOT NULL notification_level.

This commit amends the expression so that the notification_level will only be compared if it is non-null.
2020-01-06 16:15:24 +00:00
..
assets FIX: allows scroll on load for discovery topic list (#8661) 2020-01-06 15:43:36 +01:00
controllers FIX: Don't give error 500 when invalid date param is given to admin reports (#8658) 2020-01-03 17:01:38 +03:00
helpers FIX: Replace deprecated URI.encode, URI.escape, URI.unescape and URI.unencode (#8528) 2019-12-12 12:49:21 +10:00
jobs FIX: Replace deprecated URI.encode, URI.escape, URI.unescape and URI.unencode (#8528) 2019-12-12 12:49:21 +10:00
mailers FIX: Replace deprecated URI.encode, URI.escape, URI.unescape and URI.unencode (#8528) 2019-12-12 12:49:21 +10:00
models FIX: New/unread count after dismissing new topics in a regular category (#8659) 2020-01-06 16:15:24 +00:00
serializers FIX: Show uncategorized description on categories page 2020-01-03 11:46:18 -05:00
services FIX: Allow any protocol in wildcard url checker (#8651) 2020-01-02 16:03:13 +00:00
views FEATURE: improve email change workflow 2019-11-21 16:28:35 +11:00