summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorNulo <86896666+catdevnull@users.noreply.github.com>2022-03-25 18:15:13 +0000
committerGitHub <noreply@github.com>2022-03-25 20:15:13 +0200
commitf36701c702dc67011999cfaaf37e002c13e7a87e (patch)
tree6dc6259d2bc907a9a2c8cf54c18b8bae4fdad095 /templates
parent5fe764b1eb7bf4da752b047c25794316f31b68d6 (diff)
downloadgitea-f36701c702dc67011999cfaaf37e002c13e7a87e.tar.gz
gitea-f36701c702dc67011999cfaaf37e002c13e7a87e.zip
Set OpenGraph title to DisplayName in profile pages (#19206)
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates')
-rw-r--r--templates/base/head.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index 666246a18a..68d14af51d 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -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}}" />