summaryrefslogtreecommitdiff
path: root/internal/web/profile.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/profile.go')
-rw-r--r--internal/web/profile.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/internal/web/profile.go b/internal/web/profile.go
index 0640c7df9..67407f8e4 100644
--- a/internal/web/profile.go
+++ b/internal/web/profile.go
@@ -99,6 +99,15 @@ func (m *Module) profileGETHandler(c *gin.Context) {
return
}
+ stylesheets := []string{
+ "/assets/Fork-Awesome/css/fork-awesome.min.css",
+ "/assets/dist/status.css",
+ "/assets/dist/profile.css",
+ }
+ if config.GetAccountsAllowCustomCSS() {
+ stylesheets = append(stylesheets, "/@"+account.Username+"/custom.css")
+ }
+
c.HTML(http.StatusOK, "profile.tmpl", gin.H{
"instance": instance,
"account": account,
@@ -106,11 +115,7 @@ func (m *Module) profileGETHandler(c *gin.Context) {
"statuses": statusResp.Items,
"statuses_next": statusResp.NextLink,
"show_back_to_top": showBackToTop,
- "stylesheets": []string{
- "/assets/Fork-Awesome/css/fork-awesome.min.css",
- "/assets/dist/status.css",
- "/assets/dist/profile.css",
- },
+ "stylesheets": stylesheets,
"javascript": []string{
"/assets/dist/frontend.js",
},