mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	fix: use ctx
This commit is contained in:
		@@ -103,7 +103,7 @@ func notify(ctx context.Context, input *notifyInput) error {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	if err := input.Repo.LoadUnits(db.DefaultContext); err != nil {
 | 
						if err := input.Repo.LoadUnits(db.DefaultContext); err != nil {
 | 
				
			||||||
		return fmt.Errorf("repo.LoadUnits: %w", err)
 | 
							return fmt.Errorf("repo.LoadUnits: %w", err)
 | 
				
			||||||
	} else if !input.Repo.UnitEnabled(unit.TypeActions) {
 | 
						} else if !input.Repo.UnitEnabled(ctx, unit.TypeActions) {
 | 
				
			||||||
		return nil
 | 
							return nil
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user