mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 06:21:11 +00:00 
			
		
		
		
	refactor some functions to support ctx as first parameter (#21878)
Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
		
					parent
					
						
							
								8698458f48
							
						
					
				
			
			
				commit
				
					
						0a7d3ff786
					
				
			
		
					 145 changed files with 360 additions and 369 deletions
				
			
		|  | @ -148,7 +148,7 @@ func (issue *Issue) getCrossReferences(stdCtx context.Context, ctx *crossReferen | |||
| 			refRepo = ctx.OrigIssue.Repo | ||||
| 		} else { | ||||
| 			// Issues in other repositories | ||||
| 			refRepo, err = repo_model.GetRepositoryByOwnerAndNameCtx(stdCtx, ref.Owner, ref.Name) | ||||
| 			refRepo, err = repo_model.GetRepositoryByOwnerAndName(stdCtx, ref.Owner, ref.Name) | ||||
| 			if err != nil { | ||||
| 				if repo_model.IsErrRepoNotExist(err) { | ||||
| 					continue | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue