Skip to content

Commit 336e1ac

Browse files
authored
Fix NotificationUnreadCount (#19802)
1 parent be99eb2 commit 336e1ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routers/web/user/notification.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"code.gitea.io/gitea/models"
1515
"code.gitea.io/gitea/modules/base"
1616
"code.gitea.io/gitea/modules/context"
17+
"code.gitea.io/gitea/modules/log"
1718
"code.gitea.io/gitea/modules/setting"
1819
)
1920

@@ -35,7 +36,7 @@ func GetNotificationCount(c *context.Context) {
3536
c.Data["NotificationUnreadCount"] = func() int64 {
3637
count, err := models.GetNotificationCount(c.User, models.NotificationStatusUnread)
3738
if err != nil {
38-
c.ServerError("GetNotificationCount", err)
39+
log.Error("Unable to GetNotificationCount for user:%-v: %v", c.User, err)
3940
return -1
4041
}
4142

0 commit comments

Comments
 (0)