1
0
Fork 0
forked from forgejo/forgejo

move notification APIFormat (#13783)

This commit is contained in:
6543 2020-12-02 10:24:35 +01:00 committed by GitHub
parent 4569339a4b
commit 4f5ff1ef08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 75 additions and 63 deletions

View file

@ -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/modules/log"
"code.gitea.io/gitea/routers/api/v1/utils"
)
@ -127,7 +128,7 @@ func ListRepoNotifications(ctx *context.APIContext) {
return
}
ctx.JSON(http.StatusOK, nl.APIFormat())
ctx.JSON(http.StatusOK, convert.ToNotifications(nl))
}
// ReadRepoNotifications mark notification threads as read on a specific repo