Set OpenGraph title to DisplayName in profile pages (#19206)

Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
Nulo 2022-03-25 18:15:13 +00:00 committed by GitHub
parent 5fe764b1eb
commit f36701c702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@
</style>
</noscript>
{{if .PageIsUserProfile}}
<meta property="og:title" content="{{.Owner.Name}}" />
<meta property="og:title" content="{{.Owner.DisplayName}}" />
<meta property="og:type" content="profile" />
<meta property="og:image" content="{{.Owner.AvatarLink}}" />
<meta property="og:url" content="{{.Owner.HTMLURL}}" />