mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 00:28:30 +00:00 
			
		
		
		
	Fix loadRepository error when access user dashboard (#31719)
This commit is contained in:
		@@ -211,6 +211,10 @@ func (status *CommitStatus) LocaleString(lang translation.Locale) string {
 | 
			
		||||
 | 
			
		||||
// HideActionsURL set `TargetURL` to an empty string if the status comes from Gitea Actions
 | 
			
		||||
func (status *CommitStatus) HideActionsURL(ctx context.Context) {
 | 
			
		||||
	if status.RepoID == 0 {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if status.Repo == nil {
 | 
			
		||||
		if err := status.loadRepository(ctx); err != nil {
 | 
			
		||||
			log.Error("loadRepository: %v", err)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user