mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 00:52:24 -05:00
[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
This commit is contained in:
parent
d9729e7d28
commit
138cbe4d60
5 changed files with 115 additions and 30 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue