mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 01:44:26 +02:00
move notification APIFormat (#13783)
This commit is contained in:
5 files changed
+75
-63
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user