forked from forgejo/forgejo
move notification APIFormat (#13783)
This commit is contained in:
parent
4569339a4b
commit
4f5ff1ef08
5 changed files with 75 additions and 63 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue