mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 02:53:59 +08:00
e0aa99fabb
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 |
||
---|---|---|
.. | ||
admin | ||
forum | ||
lib | ||
.gitignore | ||
bower.json |