Feature: emoji editor (#2411)
* Custom emoji editor: implement backend This reuses the logo upload code * Implement emoji edit admin interface Again reuse base64 logic from the logo upload * Allow toggling between uploaded and default emojis * Add route that always serves uploaded emojis This is needed for the admin emoji interface, as otherwise the emojis will 404 if custom emojis are disabled * Fix linter warnings * Remove custom/uploaded emoji logic * Reset timer after emoji deletion * Setup: copy built-in emojis to emoji directory
This commit is contained in:
@@ -9,8 +9,8 @@ const (
|
||||
FfmpegSuggestedVersion = "v4.1.5" // Requires the v
|
||||
// DataDirectory is the directory we save data to.
|
||||
DataDirectory = "data"
|
||||
// EmojiDir is relative to the static directory.
|
||||
EmojiDir = "/img/emoji"
|
||||
// EmojiDir defines the URL route prefix for emoji requests.
|
||||
EmojiDir = "/img/emoji/"
|
||||
// MaxUserColor is the largest color value available to assign to users.
|
||||
// They start at 0 and can be treated as IDs more than colors themselves.
|
||||
MaxUserColor = 7
|
||||
@@ -25,6 +25,6 @@ var (
|
||||
// HLSStoragePath is the directory HLS video is written to.
|
||||
HLSStoragePath = filepath.Join(DataDirectory, "hls")
|
||||
|
||||
// CustomEmojiPath is the optional emoji override directory.
|
||||
// CustomEmojiPath is the emoji directory.
|
||||
CustomEmojiPath = filepath.Join(DataDirectory, "emoji")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user