Support a custom emoji override directory. Closes #1967

This commit is contained in:
Gabe Kangas
2022-06-25 23:06:31 -07:00
parent bb1c934c4b
commit 97db93e0d7
3 changed files with 26 additions and 6 deletions

View File

@@ -4,12 +4,12 @@ import "path/filepath"
const (
// StaticVersionNumber is the version of Owncast that is used when it's not overwritten via build-time settings.
StaticVersionNumber = "0.0.12" // Shown when you build from develop
StaticVersionNumber = "0.1.0" // Shown when you build from develop
// FfmpegSuggestedVersion is the version of ffmpeg we suggest.
FfmpegSuggestedVersion = "v4.1.5" // Requires the v
// DataDirectory is the directory we save data to.
DataDirectory = "data"
// EmojiDir is relative to the webroot.
// EmojiDir is relative to the static directory.
EmojiDir = "/img/emoji"
)
@@ -19,4 +19,7 @@ var (
// HLSStoragePath is the directory HLS video is written to.
HLSStoragePath = filepath.Join(DataDirectory, "hls")
// CustomEmojiPath is the optional emoji override directory.
CustomEmojiPath = filepath.Join(DataDirectory, "emoji")
)