summaryrefslogtreecommitdiffstats
path: root/routers/user/notification.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-01-30 09:21:49 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-30 22:21:49 +0800
commit2eb15f4a611393a4cbfcd91054f92ade302be62f (patch)
treecbc3c1b448d0fe0ec4db19bae480682559ba2272 /routers/user/notification.go
parent77ab60df83c5fb60ef8d7c4fe63ac222e3670112 (diff)
downloadgitea-2eb15f4a611393a4cbfcd91054f92ade302be62f.tar.gz
gitea-2eb15f4a611393a4cbfcd91054f92ade302be62f.zip
Unit tests and remove unused functions in models/notification (#796)
* Unit tests and remove unused functions in models/notification * Read -> Unread
Diffstat (limited to 'routers/user/notification.go')
-rw-r--r--routers/user/notification.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/notification.go b/routers/user/notification.go
index 7bc2da18db..deb98d589c 100644
--- a/routers/user/notification.go
+++ b/routers/user/notification.go
@@ -28,7 +28,7 @@ func GetNotificationCount(c *context.Context) {
return
}
- count, err := models.GetNotificationUnreadCount(c.User)
+ count, err := models.GetNotificationCount(c.User, models.NotificationStatusUnread)
if err != nil {
c.Handle(500, "GetNotificationCount", err)
return