diff options
Diffstat (limited to 'routers/user/notification.go')
-rw-r--r-- | routers/user/notification.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/user/notification.go b/routers/user/notification.go index 74a33f7e2c..7bc2da18db 100644 --- a/routers/user/notification.go +++ b/routers/user/notification.go @@ -73,8 +73,8 @@ func Notifications(c *context.Context) { } title := c.Tr("notifications") - if count := len(notifications); count > 0 { - title = fmt.Sprintf("(%d) %s", count, title) + if status == models.NotificationStatusUnread && total > 0 { + title = fmt.Sprintf("(%d) %s", total, title) } c.Data["Title"] = title c.Data["Keyword"] = keyword |