Toby Zerner e0aa99fabb Properly mark all notifications as read
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
2015-09-29 16:41:05 +09:30
2015-09-22 17:11:51 +09:30
2015-09-17 12:16:38 +09:30
2015-09-23 18:30:28 +02:00
2015-07-05 21:25:09 +09:30
2015-08-30 15:02:48 +02:00
2015-08-29 18:29:19 +09:30

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
Simple forum software for building great communities.
Readme 208 MiB
Languages
PHP 60.5%
TypeScript 26.2%
JavaScript 7.9%
Less 4.4%
Blade 0.8%
Other 0.2%