diff options
author | 6543 <6543@obermui.de> | 2020-12-02 10:24:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 09:24:35 +0000 |
commit | 4f5ff1ef080f73c1374126effb2b4fc249c0bd6c (patch) | |
tree | fbd3fa6f9b709224f844aac81604d9d1b88a9284 /routers/api/v1/notify/threads.go | |
parent | 4569339a4b8ead2b9bb110f4b7fc393ef6b3b4ba (diff) | |
download | gitea-4f5ff1ef080f73c1374126effb2b4fc249c0bd6c.tar.gz gitea-4f5ff1ef080f73c1374126effb2b4fc249c0bd6c.zip |
move notification APIFormat (#13783)
Diffstat (limited to 'routers/api/v1/notify/threads.go')
-rw-r--r-- | routers/api/v1/notify/threads.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/api/v1/notify/threads.go b/routers/api/v1/notify/threads.go index 86ae2dca31..efe5bcb59c 100644 --- a/routers/api/v1/notify/threads.go +++ b/routers/api/v1/notify/threads.go @@ -10,6 +10,7 @@ import ( "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/convert" ) // GetThread get notification by ID @@ -44,7 +45,7 @@ func GetThread(ctx *context.APIContext) { return } - ctx.JSON(http.StatusOK, n.APIFormat()) + ctx.JSON(http.StatusOK, convert.ToNotificationThread(n)) } // ReadThread mark notification as read by ID |