We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
routers/web
1 parent 92f139d commit cc3016fCopy full SHA for cc3016f
routers/web/user/notification.go
@@ -15,7 +15,7 @@ import (
15
"code.gitea.io/gitea/modules/base"
16
"code.gitea.io/gitea/modules/context"
17
"code.gitea.io/gitea/modules/setting"
18
- api "code.gitea.io/gitea/modules/structs"
+ "code.gitea.io/gitea/modules/structs"
19
)
20
21
const (
@@ -194,6 +194,6 @@ func NotificationPurgePost(c *context.Context) {
194
}
195
196
// NewAvailable returns the notification counts
197
-func NewAvailable(ctx *context.APIContext) {
198
- ctx.JSON(http.StatusOK, api.NotificationCount{New: models.CountUnread(ctx.Doer)})
+func NewAvailable(ctx *context.Context) {
+ ctx.JSON(http.StatusOK, structs.NotificationCount{New: models.CountUnread(ctx.Doer)})
199
0 commit comments