summaryrefslogtreecommitdiff
path: root/internal/web/assetscache.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-09-04 14:41:42 +0200
committerLibravatar GitHub <noreply@github.com>2022-09-04 14:41:42 +0200
commit006c8b604b88fdddf1a2319e44aa37dd8777efd9 (patch)
treed1562a40f437005031405525a51a8003c2fd39d7 /internal/web/assetscache.go
parent[bugfix] Fix status fields `in_reply_to_id` and `in_reply_to_account_id` not ... (diff)
downloadgotosocial-006c8b604b88fdddf1a2319e44aa37dd8777efd9.tar.xz
[feature] Set default header and avatar for API accounts to GtS ones (#799)
* validate web-asset-base-dir * move default icons into converter * always ensure avatar + header on api accounts * update tests * add default header * don't return error from web module creation anymore * tidy a bit * use pngs for default avatars rather than svgs
Diffstat (limited to 'internal/web/assetscache.go')
-rw-r--r--internal/web/assetscache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/web/assetscache.go b/internal/web/assetscache.go
index 57a0ade0b..fccc95993 100644
--- a/internal/web/assetscache.go
+++ b/internal/web/assetscache.go
@@ -114,7 +114,7 @@ func (m *Module) cacheControlMiddleware(fs http.FileSystem) gin.HandlerFunc {
if !strings.HasPrefix(upath, "/") {
upath = "/" + upath
}
- assetFilePath := strings.TrimPrefix(path.Clean(upath), assetsPath)
+ assetFilePath := strings.TrimPrefix(path.Clean(upath), assetsPathPrefix)
// either fetch etag from ttlcache or generate it
eTag, err := m.getAssetETag(assetFilePath, fs)