Skip to content

Commit

Permalink
Set OpenGraph title to DisplayName in profile pages (go-gitea#19206)
Browse files Browse the repository at this point in the history
Co-authored-by: Lauris BH <lauris@nix.lv>
  • Loading branch information
2 people authored and Stelios Malathouras committed Mar 28, 2022
1 parent 49a6ebd commit c68ad4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/base/head.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}" />
Expand Down

0 comments on commit c68ad4c

Please sign in to comment.