diff options
author | 2022-11-23 15:32:57 +0100 | |
---|---|---|
committer | 2022-11-23 15:32:57 +0100 | |
commit | 1281a9fd4ab78928cbdc5ac116358ba328015bf9 (patch) | |
tree | 2f181eeece7e7433cb7d6a033d936e90155f8f1a /internal/web/profile.go | |
parent | [feature] Prune timelines once per hour to plug memory leak (#1117) (diff) | |
download | gotosocial-1281a9fd4ab78928cbdc5ac116358ba328015bf9.tar.xz |
[chore/frontend] remove references to unused bundle.js (#1128)
Diffstat (limited to 'internal/web/profile.go')
-rw-r--r-- | internal/web/profile.go | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/internal/web/profile.go b/internal/web/profile.go index 5023fa238..8a0368a3c 100644 --- a/internal/web/profile.go +++ b/internal/web/profile.go @@ -110,9 +110,9 @@ func (m *Module) profileGETHandler(c *gin.Context) { } stylesheets := []string{ - "/assets/Fork-Awesome/css/fork-awesome.min.css", - "/assets/dist/status.css", - "/assets/dist/profile.css", + assetsPathPrefix + "/Fork-Awesome/css/fork-awesome.min.css", + distPathPrefix + "/status.css", + distPathPrefix + "/profile.css", } if config.GetAccountsAllowCustomCSS() { stylesheets = append(stylesheets, "/@"+account.Username+"/custom.css") @@ -128,10 +128,7 @@ func (m *Module) profileGETHandler(c *gin.Context) { "statuses_next": statusResp.NextLink, "show_back_to_top": showBackToTop, "stylesheets": stylesheets, - "javascript": []string{ - "/assets/dist/bundle.js", - "/assets/dist/frontend.js", - }, + "javascript": []string{distPathPrefix + "/frontend.js"}, }) } |