mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	OpenGraph: use repo avatar if exist (#12586)
This commit is contained in:
		@@ -97,7 +97,11 @@
 | 
			
		||||
		{{end}}
 | 
			
		||||
	{{end}}
 | 
			
		||||
	<meta property="og:type" content="object" />
 | 
			
		||||
	<meta property="og:image" content="{{.Repository.Owner.AvatarLink}}" />
 | 
			
		||||
	{{if .Repository.AvatarLink}}
 | 
			
		||||
		<meta property="og:image" content="{{.Repository.AvatarLink}}" />
 | 
			
		||||
	{{else}}
 | 
			
		||||
		<meta property="og:image" content="{{.Repository.Owner.AvatarLink}}" />
 | 
			
		||||
	{{end}}
 | 
			
		||||
{{else}}
 | 
			
		||||
	<meta property="og:title" content="{{AppName}}">
 | 
			
		||||
	<meta property="og:type" content="website" />
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user