1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-26 18:20:57 +00:00

use doer coming from api

This commit is contained in:
Michael Jerger 2024-03-28 08:13:00 +01:00
parent 992fbf6898
commit d624ebb712
4 changed files with 20 additions and 27 deletions

View file

@ -82,7 +82,7 @@ func LikeActivity(ctx context.Context, form any, repositoryID int64) (int, strin
// execute the activity if the repo was not stared already
alreadyStared := repo.IsStaring(ctx, user.ID, repositoryID)
if !alreadyStared {
err = repo.StarRepo(ctx, user.ID, repositoryID, true)
err = repo.StarRepo(ctx, user, repositoryID, true)
if err != nil {
return http.StatusNotAcceptable, "Error staring", err
}