discourse/app
Jarek Radosz 6b464d1b8d
FIX: Restore dismissing the first notification (#10433)
* FIX: Restore dismissing the first notification

Reverts the temporary fix (8e4fea897e) and restores the feature introduced in e638d43f0a.

The issue that was the reason for the revert (https://meta.discourse.org/t/logins-redirects-to-missing-notifications-page/149718) was a combination of two bugs:

1. Fixed in this commit - the click listener was accidentally registered also for logged-out users. This meant that the first click on a page always trigger an AJAX call to the notifications endpoint (`/notifications?recent=true&limit=5`), which returned a 403 error. Now, this code is run only when the user is logged in.

2. A still unknown bug that I could not reproduce, which was somehow setting the login redirect cookie to the URL of that previously failed AJAX request.
2020-12-08 11:11:35 +11:00
..
assets FIX: Restore dismissing the first notification (#10433) 2020-12-08 11:11:35 +11:00
controllers FIX: hide user id when hide_email_address_taken (#11417) 2020-12-08 08:25:35 +11:00
helpers UX: Use appropriate logo on static pages (#11211) 2020-11-12 10:50:55 -08:00
jobs DEV: Always enqueue sidekiq jobs after database transaction commit (#11293) 2020-12-08 11:05:01 +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: Group#flair_url must be a real URL (#11400) 2020-12-07 13:35:41 +02:00
serializers FIX: Use CDN for custom emojis (#11401) 2020-12-07 13:36:08 +02:00
services FEATURE: silently close topic (#11392) 2020-12-03 10:43:19 +11:00
views Move CSS link tags above JS in the head 2020-11-17 09:57:30 -05:00