diff options
Diffstat (limited to 'routers/api/v1/user/watch.go')
-rw-r--r-- | routers/api/v1/user/watch.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/api/v1/user/watch.go b/routers/api/v1/user/watch.go index 9ad8682f5f..ab656f3229 100644 --- a/routers/api/v1/user/watch.go +++ b/routers/api/v1/user/watch.go @@ -9,6 +9,7 @@ import ( "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/convert" api "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/routers/api/v1/utils" ) @@ -27,7 +28,7 @@ func getWatchedRepos(user *models.User, private bool, listOptions models.ListOpt if err != nil { return nil, err } - repos[i] = watched.APIFormat(access) + repos[i] = convert.ToRepo(watched, access) } return repos, nil } |