Set OpenGraph title to DisplayName in profile pages

This commit is contained in:
Cat /dev/Nulo 2022-03-24 17:02:57 -03:00
parent 09b76295f1
commit bb90a62562

View file

@ -67,7 +67,7 @@
</style> </style>
</noscript> </noscript>
{{if .PageIsUserProfile}} {{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:type" content="profile" />
<meta property="og:image" content="{{.Owner.AvatarLink}}" /> <meta property="og:image" content="{{.Owner.AvatarLink}}" />
<meta property="og:url" content="{{.Owner.HTMLURL}}" /> <meta property="og:url" content="{{.Owner.HTMLURL}}" />