1
0
Fork 0
forked from forgejo/forgejo

Remove stars when repo goes private (#19904)

Fixes #18600
This commit is contained in:
Wim 2023-06-05 15:25:43 +02:00 committed by GitHub
parent 8e63373c01
commit 62ac3251fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 1 deletions

View file

@ -397,6 +397,10 @@ func UpdateRepository(ctx context.Context, repo *repo_model.Repository, visibili
if err != nil {
return err
}
if err = repo_model.ClearRepoStars(ctx, repo.ID); err != nil {
return err
}
}
// Create/Remove git-daemon-export-ok for git-daemon...