mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	In issue comments, put issue participants also in completion list when hitting @ (#12433)
Previous behaviour was only to have completion for project members
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							28a7708d69
						
					
				
				
					commit
					e5c5080f26
				
			@@ -78,12 +78,16 @@
 | 
			
		||||
				EventSourceUpdateTime: {{NotificationSettings.EventSourceUpdateTime}},
 | 
			
		||||
			},
 | 
			
		||||
      {{if .RequireTribute}}
 | 
			
		||||
			tributeValues: [
 | 
			
		||||
				{{ range .Assignees }}
 | 
			
		||||
				{key: '{{.Name}} {{.FullName}}', value: '{{.Name}}',
 | 
			
		||||
				name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.RelAvatarLink}}'},
 | 
			
		||||
			tributeValues: Array.from(new Map([
 | 
			
		||||
				{{ range .Participants }}
 | 
			
		||||
				['{{.Name}}', {key: '{{.Name}} {{.FullName}}', value: '{{.Name}}',
 | 
			
		||||
				name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.RelAvatarLink}}'}],
 | 
			
		||||
				{{ end }}
 | 
			
		||||
			],
 | 
			
		||||
				{{ range .Assignees }}
 | 
			
		||||
				['{{.Name}}', {key: '{{.Name}} {{.FullName}}', value: '{{.Name}}',
 | 
			
		||||
				name: '{{.Name}}', fullname: '{{.FullName}}', avatar: '{{.RelAvatarLink}}'}],
 | 
			
		||||
				{{ end }}
 | 
			
		||||
			]).values()),
 | 
			
		||||
			{{end}}
 | 
			
		||||
		};
 | 
			
		||||
	</script>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user