mirror of
https://github.com/flarum/framework.git
synced 2025-06-03 06:13:07 +08:00
e0aa99fabbc0fe31d5762c5fadd468707a652829

Previously, clicking the "mark all notifications as read" button would individually mark each of the visible notifications as read. Since we now always show a badge with the number of unread notifications, we need to make sure that all notifications (not just the visible ones) can be marked as read. Otherwise it would be possible to get stuck with an unread badge there. This commit adds a new API endpoint which marks *all* of a user's notifications as read. The JSON-API spec doesn't cover this kind of thing (updating all instances of a certain resource type), so I'm a bit unsure regarding what the endpoint should actually be. For now I've gone with POST /notifications/read, but I'm open to suggestions. ref #500
Flarum Core
This repository contains the core code of Flarum. If you want to install Flarum, visit the main Flarum repository.
Contributing
Interested in contributing to Flarum? Please read the Contributing docs to learn how you can help.
Description
Languages
PHP
60.5%
TypeScript
26.2%
JavaScript
7.9%
Less
4.4%
Blade
0.8%
Other
0.2%