From 4f5ff1ef080f73c1374126effb2b4fc249c0bd6c Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 2 Dec 2020 10:24:35 +0100 Subject: move notification APIFormat (#13783) --- routers/api/v1/notify/user.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routers/api/v1/notify/user.go') 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 -- cgit v1.2.3