[feature] Use blurhashes in frontend, tidy up gallery view a bit

This commit is contained in:
tobi 2025-03-28 22:51:31 +01:00
commit df425ac08a
16 changed files with 421 additions and 123 deletions

View file

@ -146,7 +146,17 @@ func (m *Module) threadGETHandler(c *gin.Context) {
Instance: instance,
OGMeta: apiutil.OGBase(instance).WithStatus(context.Status),
Stylesheets: stylesheets,
Javascript: []string{jsFrontend},
Javascript: []apiutil.JavascriptEntry{
{
Src: jsFrontend,
Async: true,
Defer: true,
},
{
Bottom: true,
Src: jsBlurhash,
},
},
Extra: map[string]any{
"context": context,
},