summaryrefslogtreecommitdiff
path: root/internal/api/fileserver/fileserver.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-01-22 16:17:04 +0100
committerLibravatar GitHub <noreply@github.com>2024-01-22 15:17:04 +0000
commit138cbe4d602838d0b4d431cb934d533cf5516ea9 (patch)
treee11ef1601133910f57a82dcd1d275b19d3f9c996 /internal/api/fileserver/fileserver.go
parent[bugfix] Don't return Internal Server Error when searching for URIs that don'... (diff)
downloadgotosocial-138cbe4d602838d0b4d431cb934d533cf5516ea9.tar.xz
[feature] Ratelimit + serve emoji images on separate router group (#2548)
* [feature] Serve + rate limit emoji files separately from attachments * add a wee little warning about uploading loads of emojis
Diffstat (limited to 'internal/api/fileserver/fileserver.go')
-rw-r--r--internal/api/fileserver/fileserver.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/fileserver/fileserver.go b/internal/api/fileserver/fileserver.go
index 3620ea63f..db15ce2e0 100644
--- a/internal/api/fileserver/fileserver.go
+++ b/internal/api/fileserver/fileserver.go
@@ -33,8 +33,8 @@ const (
MediaSizeKey = "media_size"
// FileNameKey is the actual filename being sought. Will usually be a UUID then something like .jpeg
FileNameKey = "file_name"
- // FileServePath is the fileserve path minus the 'fileserver' prefix.
- FileServePath = "/:" + AccountIDKey + "/:" + MediaTypeKey + "/:" + MediaSizeKey + "/:" + FileNameKey
+ // FileServePath is the fileserve path minus the 'fileserver/:account_id/:media_type' prefix.
+ FileServePath = "/:" + MediaSizeKey + "/:" + FileNameKey
)
type Module struct {