summaryrefslogtreecommitdiff
path: root/internal/web/profile.go
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2022-09-07 16:53:12 +0200
committerLibravatar GitHub <noreply@github.com>2022-09-07 16:53:12 +0200
commitd09ddb4769b503cd59edfc97353af1fd16e4c2ad (patch)
tree4f61c5fb5e4696dc2141d682e7986e6d04aa6e72 /internal/web/profile.go
parent[feature] Custom emoji updates (serve emoji via s2s api, tune db models) (#805) (diff)
downloadgotosocial-d09ddb4769b503cd59edfc97353af1fd16e4c2ad.tar.xz
[feature] opengraph meta tags (#806)
* f0x gitignore additions * better meta title and descriptions * user avatar icon for thread and profile meta tags * use proper tag for image * whitespace * add noescapeAttr template function * use ogMeta struct for opengraph * maxOGDescriptionLength = 300 Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
Diffstat (limited to 'internal/web/profile.go')
-rw-r--r--internal/web/profile.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/web/profile.go b/internal/web/profile.go
index 61f7c57e7..0640c7df9 100644
--- a/internal/web/profile.go
+++ b/internal/web/profile.go
@@ -102,6 +102,7 @@ func (m *Module) profileGETHandler(c *gin.Context) {
c.HTML(http.StatusOK, "profile.tmpl", gin.H{
"instance": instance,
"account": account,
+ "ogMeta": ogBase(instance).withAccount(account),
"statuses": statusResp.Items,
"statuses_next": statusResp.NextLink,
"show_back_to_top": showBackToTop,