0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/app/assets/images
Rafael dos Santos Silva 2834cc7955
FIX: Duplicate notifications when mentioned in chat (#39670)
Previously, building the web push "Reply" action payload raised because
`inline_reply.png` lived under `public/images/` where Propshaft can't
resolve it, so `Jobs::Chat::NotifyMentioned` retried after
`create_notification!` and inflated the bell with duplicate rows.

This change moves the icon into `app/assets/images/push-notifications/`
and wraps the action builder in a `rescue` so any future payload failure
logs and returns `{}` instead of stranding the job.

A post-deploy migration sweeps the duplicate `chat_mention`
`Notification` rows (and their `chat_mention_notifications` join
entries) created during the deploy window — keeping the oldest row per
`(user_id, data)` group and merging the read state forward.
2026-04-30 14:52:39 -03:00
..
push-notifications FIX: Duplicate notifications when mentioned in chat (#39670) 2026-04-30 14:52:39 -03:00
favicon.ico Add 32px image to default favicons (for retina) 2013-08-16 18:37:33 -07:00
logo-dev.png Optimize assets/images 2020-11-17 09:53:33 -05:00
logo-single-dev.png Optimize assets/images 2020-11-17 09:53:33 -05:00
logo-single.png Initial release of Discourse 2013-02-05 14:16:51 -05:00
logo.png Saved ~46KB through image optimization. 2013-02-28 10:58:12 -05:00