diff options
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 |