mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	| @@ -1003,14 +1003,14 @@ func updateRepoArchivedState(ctx *context.APIContext, opts api.EditRepoOption) e | ||||
| 			return err | ||||
| 		} | ||||
| 		if *opts.Archived { | ||||
| 			if err := repo_model.SetArchiveRepoState(repo, *opts.Archived); err != nil { | ||||
| 			if err := repo_model.SetArchiveRepoState(ctx, repo, *opts.Archived); err != nil { | ||||
| 				log.Error("Tried to archive a repo: %s", err) | ||||
| 				ctx.Error(http.StatusInternalServerError, "ArchiveRepoState", err) | ||||
| 				return err | ||||
| 			} | ||||
| 			log.Trace("Repository was archived: %s/%s", ctx.Repo.Owner.Name, repo.Name) | ||||
| 		} else { | ||||
| 			if err := repo_model.SetArchiveRepoState(repo, *opts.Archived); err != nil { | ||||
| 			if err := repo_model.SetArchiveRepoState(ctx, repo, *opts.Archived); err != nil { | ||||
| 				log.Error("Tried to un-archive a repo: %s", err) | ||||
| 				ctx.Error(http.StatusInternalServerError, "ArchiveRepoState", err) | ||||
| 				return err | ||||
|   | ||||
		Reference in New Issue
	
	Block a user