From 138cbe4d602838d0b4d431cb934d533cf5516ea9 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:17:04 +0100 Subject: [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 --- internal/api/fileserver/fileserver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/api/fileserver/fileserver.go') 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 { -- cgit v1.2.3