diff options
author | 2022-09-07 16:53:12 +0200 | |
---|---|---|
committer | 2022-09-07 16:53:12 +0200 | |
commit | d09ddb4769b503cd59edfc97353af1fd16e4c2ad (patch) | |
tree | 4f61c5fb5e4696dc2141d682e7986e6d04aa6e72 /internal/web/thread.go | |
parent | [feature] Custom emoji updates (serve emoji via s2s api, tune db models) (#805) (diff) | |
download | gotosocial-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/thread.go')
-rw-r--r-- | internal/web/thread.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/web/thread.go b/internal/web/thread.go index 3db4952c7..824d3c33c 100644 --- a/internal/web/thread.go +++ b/internal/web/thread.go @@ -108,6 +108,7 @@ func (m *Module) threadGETHandler(c *gin.Context) { "instance": instance, "status": status, "context": context, + "ogMeta": ogBase(instance).withStatus(status), "stylesheets": []string{ "/assets/Fork-Awesome/css/fork-awesome.min.css", "/assets/dist/status.css", |