summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/notify/user.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-12-02 10:24:35 +0100
committerGitHub <noreply@github.com>2020-12-02 09:24:35 +0000
commit4f5ff1ef080f73c1374126effb2b4fc249c0bd6c (patch)
treefbd3fa6f9b709224f844aac81604d9d1b88a9284 /routers/api/v1/notify/user.go
parent4569339a4b8ead2b9bb110f4b7fc393ef6b3b4ba (diff)
downloadgitea-4f5ff1ef080f73c1374126effb2b4fc249c0bd6c.tar.gz
gitea-4f5ff1ef080f73c1374126effb2b4fc249c0bd6c.zip
move notification APIFormat (#13783)
Diffstat (limited to 'routers/api/v1/notify/user.go')
-rw-r--r--routers/api/v1/notify/user.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/api/v1/notify/user.go b/routers/api/v1/notify/user.go
index 373c88d372..e739c6a38d 100644
--- a/routers/api/v1/notify/user.go
+++ b/routers/api/v1/notify/user.go
@@ -11,6 +11,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/convert"
"code.gitea.io/gitea/routers/api/v1/utils"
)
@@ -87,7 +88,7 @@ func ListNotifications(ctx *context.APIContext) {
return
}
- ctx.JSON(http.StatusOK, nl.APIFormat())
+ ctx.JSON(http.StatusOK, convert.ToNotifications(nl))
}
// ReadNotifications mark notification threads as read, unread, or pinned