diff options
author | 2022-09-04 14:41:42 +0200 | |
---|---|---|
committer | 2022-09-04 14:41:42 +0200 | |
commit | 006c8b604b88fdddf1a2319e44aa37dd8777efd9 (patch) | |
tree | d1562a40f437005031405525a51a8003c2fd39d7 /internal/web/assetscache.go | |
parent | [bugfix] Fix status fields `in_reply_to_id` and `in_reply_to_account_id` not ... (diff) | |
download | gotosocial-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.go | 2 |
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) |