summaryrefslogtreecommitdiff
path: root/internal/web/thread.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/thread.go')
-rw-r--r--internal/web/thread.go21
1 files changed, 13 insertions, 8 deletions
diff --git a/internal/web/thread.go b/internal/web/thread.go
index 824d3c33c..b7e1bef3d 100644
--- a/internal/web/thread.go
+++ b/internal/web/thread.go
@@ -104,15 +104,20 @@ func (m *Module) threadGETHandler(c *gin.Context) {
return
}
+ stylesheets := []string{
+ "/assets/Fork-Awesome/css/fork-awesome.min.css",
+ "/assets/dist/status.css",
+ }
+ if config.GetAccountsAllowCustomCSS() {
+ stylesheets = append(stylesheets, "/@"+username+"/custom.css")
+ }
+
c.HTML(http.StatusOK, "thread.tmpl", gin.H{
- "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",
- },
+ "instance": instance,
+ "status": status,
+ "context": context,
+ "ogMeta": ogBase(instance).withStatus(status),
+ "stylesheets": stylesheets,
"javascript": []string{
"/assets/dist/frontend.js",
},