mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-18 19:54:02 +00:00
chore: fix repo watch (#38921)
This commit is contained in:
@@ -183,7 +183,7 @@ func unwatchRepos(ctx context.Context, watcher, repoOwner *user_model.User) erro
|
||||
}
|
||||
|
||||
for _, repo := range repos {
|
||||
if err := repo_model.WatchRepo(ctx, watcher, repo, false); err != nil {
|
||||
if err := repo_model.WatchRepoAuto(ctx, watcher, repo, false); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user