mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-11-09 10:44:23 +00:00
use doer coming from api
This commit is contained in:
parent
992fbf6898
commit
d624ebb712
4 changed files with 20 additions and 27 deletions
|
|
@ -157,7 +157,7 @@ func Star(ctx *context.APIContext) {
|
|||
// "$ref": "#/responses/notFound"
|
||||
|
||||
// TODO: why is this *context.APIContext passed, where a context.Context is expected?
|
||||
err := repo_model.StarRepo(ctx, ctx.Doer.ID, ctx.Repo.Repository.ID, true)
|
||||
err := repo_model.StarRepo(ctx, ctx.Doer, ctx.Repo.Repository.ID, true)
|
||||
if err != nil {
|
||||
ctx.Error(http.StatusInternalServerError, "StarRepo", err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue