mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	#2045 move fallback to empty string
This commit is contained in:
		@@ -113,10 +113,11 @@ func getSlackPushPayload(p *api.PushPayload, slack *SlackMeta) (*SlackPayload, e
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	slackAttachments := []SlackAttachment{{
 | 
			
		||||
		Fallback: fmt.Sprintf("%s pushed %s to %s/%s: %s",
 | 
			
		||||
			p.Pusher, commitDesc, p.Repo.Name, branchName, p.CompareUrl),
 | 
			
		||||
		Color: slack.Color,
 | 
			
		||||
		Text:  attachmentText,
 | 
			
		||||
	}, {
 | 
			
		||||
		Fallback: fmt.Sprintf("%s pushed %s to %s/%s: %s",
 | 
			
		||||
			p.Pusher, commitDesc, p.Repo.Name, branchName, p.CompareUrl),
 | 
			
		||||
	}}
 | 
			
		||||
 | 
			
		||||
	return &SlackPayload{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user