summaryrefslogtreecommitdiff
path: root/internal/web/profile.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-11-23 15:32:57 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-23 15:32:57 +0100
commit1281a9fd4ab78928cbdc5ac116358ba328015bf9 (patch)
tree2f181eeece7e7433cb7d6a033d936e90155f8f1a /internal/web/profile.go
parent[feature] Prune timelines once per hour to plug memory leak (#1117) (diff)
downloadgotosocial-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.go11
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"},
})
}