mirror of
https://github.com/flarum/framework.git
synced 2025-05-29 03:21:57 +08:00
Return both unread and new notification count from the API
Related to #500.
This commit is contained in:
@ -23,6 +23,7 @@ export default class User extends mixin(Model, {
|
||||
lastSeenTime: Model.attribute('lastSeenTime', Model.transformDate),
|
||||
readTime: Model.attribute('readTime', Model.transformDate),
|
||||
unreadNotificationsCount: Model.attribute('unreadNotificationsCount'),
|
||||
newNotificationsCount: Model.attribute('newNotificationsCount'),
|
||||
|
||||
discussionsCount: Model.attribute('discussionsCount'),
|
||||
commentsCount: Model.attribute('commentsCount'),
|
||||
|
Reference in New Issue
Block a user