Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Use bundled images instead of old webroot files
Gabe Kangas7d217867ac0e
diff --git a/activitypub/outbox/outbox.go b/activitypub/outbox/outbox.goindex a16017a37c..0e0d89a106 100644--- a/activitypub/outbox/outbox.go+++ b/activitypub/outbox/outbox.go@@ -77,8 +77,8 @@ func SendLive() error {if err == nil {var imageToAttach stringvar mediaType string- previewGif := filepath.Join(config.WebRoot, "preview.gif")- thumbnailJpg := filepath.Join(config.WebRoot, "thumbnail.jpg")+ previewGif := filepath.Join(config.TempDir, "preview.gif")+ thumbnailJpg := filepath.Join(config.TempDir, "thumbnail.jpg")uniquenessString := shortid.MustGenerate()if utils.DoesFileExists(previewGif) {imageToAttach = "preview.gif"diff --git a/config/constants.go b/config/constants.goindex 5e860bf57b..5a5d57f22e 100644--- a/config/constants.go+++ b/config/constants.go@@ -5,8 +5,6 @@ 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- // WebRoot is the web server root directory.- WebRoot = "webroot"// FfmpegSuggestedVersion is the version of ffmpeg we suggest.FfmpegSuggestedVersion = "v4.1.5" // Requires the v// DataDirectory is the directory we save data to.diff --git a/controllers/emoji.go b/controllers/emoji.goindex 11f8db7ef7..0661b99ceb 100644--- a/controllers/emoji.go+++ b/controllers/emoji.go@@ -2,59 +2,60 @@ package controllersimport ("encoding/json"+ "io/fs""net/http"- "os"- "path""path/filepath""strings"- "time""github.com/owncast/owncast/config""github.com/owncast/owncast/models"+ "github.com/owncast/owncast/static"+ "github.com/owncast/owncast/utils"log "github.com/sirupsen/logrus")-var (- emojiCache = make([]models.CustomEmoji, 0)- emojiCacheTimestamp time.Time-)-// getCustomEmojiList returns a list of custom emoji either from the cache or from the emoji directory.func getCustomEmojiList() []models.CustomEmoji {- fullPath := filepath.Join(config.WebRoot, config.EmojiDir)- emojiDirInfo, err := os.Stat(fullPath)+ bundledEmoji := static.GetEmoji()+ emojiResponse := make([]models.CustomEmoji, 0)++ files, err := fs.Glob(bundledEmoji, "*")if err != nil {log.Errorln(err)- }- if emojiDirInfo.ModTime() != emojiCacheTimestamp {- log.Traceln("Emoji cache invalid")- emojiCache = make([]models.CustomEmoji, 0)+ return emojiResponse}- if len(emojiCache) == 0 {- files, err := os.ReadDir(fullPath)- if err != nil {- log.Errorln(err)- return emojiCache- }- for _, f := range files {- name := strings.TrimSuffix(f.Name(), path.Ext(f.Name()))- emojiPath := filepath.Join(config.EmojiDir, f.Name())- singleEmoji := models.CustomEmoji{Name: name, URL: emojiPath}- emojiCache = append(emojiCache, singleEmoji)- }-- emojiCacheTimestamp = emojiDirInfo.ModTime()+ for _, name := range files {+ emojiPath := filepath.Join(config.EmojiDir, name)+ singleEmoji := models.CustomEmoji{Name: name, URL: emojiPath}+ emojiResponse = append(emojiResponse, singleEmoji)}- return emojiCache+ return emojiResponse}-// GetCustomEmoji returns a list of custom emoji via the API.-func GetCustomEmoji(w http.ResponseWriter, r *http.Request) {+// GetCustomEmojiList returns a list of custom emoji via the API.+func GetCustomEmojiList(w http.ResponseWriter, r *http.Request) {emojiList := getCustomEmojiList()if err := json.NewEncoder(w).Encode(emojiList); err != nil {InternalErrorHandler(w, err)}}++// GetCustomEmojiImage returns a single emoji image.+func GetCustomEmojiImage(w http.ResponseWriter, r *http.Request) {+ bundledEmoji := static.GetEmoji()+ path := strings.TrimPrefix(r.URL.Path, "/img/emoji/")++ b, err := fs.ReadFile(bundledEmoji, path)+ if err != nil {+ log.Errorln(err)+ w.WriteHeader(http.StatusInternalServerError)+ return+ }++ contentType := "image/jpeg"+ cacheTime := utils.GetCacheDurationSecondsForPath(path)+ writeBytesAsImage(b, contentType, w, cacheTime)+}diff --git a/controllers/images.go b/controllers/images.gonew file mode 100644index 0000000000..3fc1e3d63e--- /dev/null+++ b/controllers/images.go@@ -0,0 +1,59 @@+package controllers++import (+ "net/http"+ "path/filepath"++ "github.com/owncast/owncast/config"+ "github.com/owncast/owncast/utils"+)++// GetThumbnail will return the thumbnail image as a response.+func GetThumbnail(w http.ResponseWriter, r *http.Request) {+ imageFilename := "thumbnail.jpg"+ imagePath := filepath.Join(config.TempDir, imageFilename)++ var imageBytes []byte+ var err error++ if utils.DoesFileExists(imagePath) {+ imageBytes, err = getImage(imagePath)+ } else {+ GetLogo(w, r)+ return+ }++ if err != nil {+ GetLogo(w, r)+ return+ }++ contentType := "image/jpeg"+ cacheTime := utils.GetCacheDurationSecondsForPath(imagePath)+ writeBytesAsImage(imageBytes, contentType, w, cacheTime)+}++// GetPreview will return the preview gif as a response.+func GetPreview(w http.ResponseWriter, r *http.Request) {+ imageFilename := "preview.gif"+ imagePath := filepath.Join(config.TempDir, imageFilename)++ var imageBytes []byte+ var err error++ if utils.DoesFileExists(imagePath) {+ imageBytes, err = getImage(imagePath)+ } else {+ GetLogo(w, r)+ return+ }++ if err != nil {+ GetLogo(w, r)+ return+ }++ contentType := "image/jpeg"+ cacheTime := utils.GetCacheDurationSecondsForPath(imagePath)+ writeBytesAsImage(imageBytes, contentType, w, cacheTime)+}diff --git a/controllers/index.go b/controllers/index.goindex 20753d2c14..32b16cc56e 100644--- a/controllers/index.go+++ b/controllers/index.go@@ -1,20 +1,11 @@package controllersimport (- "fmt""net/http"- "net/url""path/filepath"- "strings"- log "github.com/sirupsen/logrus"-- "github.com/owncast/owncast/config"- "github.com/owncast/owncast/core"- "github.com/owncast/owncast/core/data""github.com/owncast/owncast/models""github.com/owncast/owncast/router/middleware"- "github.com/owncast/owncast/static""github.com/owncast/owncast/utils")@@ -35,10 +26,6 @@ func IndexHandler(w http.ResponseWriter, r *http.Request) {middleware.EnableCors(w)isIndexRequest := r.URL.Path == "/" || filepath.Base(r.URL.Path) == "index.html" || filepath.Base(r.URL.Path) == ""- if isIndexRequest {- handleScraperMetadataPage(w, r)- return- }if utils.IsUserAgentAPlayer(r.UserAgent()) && isIndexRequest {http.Redirect(w, r, "/hls/stream.m3u8", http.StatusTemporaryRedirect)@@ -46,10 +33,10 @@ func IndexHandler(w http.ResponseWriter, r *http.Request) {}// If the ETags match then return a StatusNotModified- if responseCode := middleware.ProcessEtags(w, r); responseCode != 0 {- w.WriteHeader(responseCode)- return- }+ // if responseCode := middleware.ProcessEtags(w, r); responseCode != 0 {+ // w.WriteHeader(responseCode)+ // return+ // }// If this is a directory listing request then return a 404// info, err := os.Stat(path.Join(config.WebRoot, r.URL.Path))@@ -65,67 +52,4 @@ func IndexHandler(w http.ResponseWriter, r *http.Request) {middleware.SetHeaders(w)serveWeb(w, r)-- // http.ServeFile(w, r, path.Join(config.WebRoot, r.URL.Path))-}--// Return a basic HTML page with server-rendered metadata from the config-// to give to Opengraph clients and web scrapers (bots, web crawlers, etc).-func handleScraperMetadataPage(w http.ResponseWriter, r *http.Request) {- tmpl, err := static.GetWebIndexTemplate()- if err != nil {- log.Errorln(err)- w.WriteHeader(http.StatusInternalServerError)- return- }-- scheme := "http"-- if siteURL := data.GetServerURL(); siteURL != "" {- if parsed, err := url.Parse(siteURL); err == nil && parsed.Scheme != "" {- scheme = parsed.Scheme- }- }-- fullURL, err := url.Parse(fmt.Sprintf("%s://%s%s", scheme, r.Host, r.URL.Path))- if err != nil {- log.Errorln(err)- }- imageURL, err := url.Parse(fmt.Sprintf("%s://%s%s", scheme, r.Host, "/logo/external"))- if err != nil {- log.Errorln(err)- }-- status := core.GetStatus()-- // If the thumbnail does not exist or we're offline then just use the logo image- var thumbnailURL string- if status.Online && utils.DoesFileExists(filepath.Join(config.WebRoot, "thumbnail.jpg")) {- thumbnail, err := url.Parse(fmt.Sprintf("%s://%s%s", scheme, r.Host, "/thumbnail.jpg"))- if err != nil {- log.Errorln(err)- thumbnailURL = imageURL.String()- } else {- thumbnailURL = thumbnail.String()- }- } else {- thumbnailURL = imageURL.String()- }-- tagsString := strings.Join(data.GetServerMetadataTags(), ",")- metadata := MetadataPage{- Name: data.GetServerName(),- RequestedURL: fullURL.String(),- Image: imageURL.String(),- Summary: data.GetServerSummary(),- Thumbnail: thumbnailURL,- TagsString: tagsString,- Tags: data.GetServerMetadataTags(),- SocialHandles: data.GetSocialHandles(),- }-- w.Header().Set("Content-Type", "text/html")- if err := tmpl.Execute(w, metadata); err != nil {- log.Errorln(err)- }}diff --git a/controllers/logo.go b/controllers/logo.goindex 580a0cb5b3..2bcda25b1f 100644--- a/controllers/logo.go+++ b/controllers/logo.go@@ -8,6 +8,7 @@ import ("github.com/owncast/owncast/config""github.com/owncast/owncast/core/data"+ "github.com/owncast/owncast/static""github.com/owncast/owncast/utils"log "github.com/sirupsen/logrus")@@ -21,7 +22,7 @@ func GetLogo(w http.ResponseWriter, r *http.Request) {returnDefault(w)return}- imagePath := filepath.Join("data", imageFilename)+ imagePath := filepath.Join(config.DataDirectory, imageFilename)imageBytes, err := getImage(imagePath)if err != nil {returnDefault(w)@@ -56,7 +57,7 @@ func GetCompatibleLogo(w http.ResponseWriter, r *http.Request) {}// Otherwise use a fallback logo.png.- imagePath := filepath.Join(config.WebRoot, "img", "logo.png")+ imagePath := filepath.Join(config.DataDirectory, "logo.png")contentType := "image/png"imageBytes, err := getImage(imagePath)if err != nil {@@ -74,14 +75,9 @@ func GetCompatibleLogo(w http.ResponseWriter, r *http.Request) {}func returnDefault(w http.ResponseWriter) {- imagePath := filepath.Join(config.WebRoot, "img", "logo.svg")- imageBytes, err := getImage(imagePath)- if err != nil {- log.Errorln(err)- return- }- cacheTime := utils.GetCacheDurationSecondsForPath(imagePath)- writeBytesAsImage(imageBytes, "image/svg+xml", w, cacheTime)+ imageBytes := static.GetLogo()+ cacheTime := utils.GetCacheDurationSecondsForPath("logo.png")+ writeBytesAsImage(imageBytes, "image/png", w, cacheTime)}func writeBytesAsImage(data []byte, contentType string, w http.ResponseWriter, cacheSeconds int) {diff --git a/controllers/web.go b/controllers/web.goindex 5797169922..1bef2cd24a 100644--- a/controllers/web.go+++ b/controllers/web.go@@ -16,13 +16,13 @@ import (// serveWeb will serve web assets.func serveWeb(w http.ResponseWriter, r *http.Request) {// If the ETags match then return a StatusNotModified- if responseCode := middleware.ProcessEtags(w, r); responseCode != 0 {- w.WriteHeader(responseCode)- return- }+ // if responseCode := middleware.ProcessEtags(w, r); responseCode != 0 {+ // w.WriteHeader(responseCode)+ // return+ // }webFiles := static.GetWeb()- path := "web/" + strings.TrimPrefix(r.URL.Path, "/")+ path := strings.TrimPrefix(r.URL.Path, "/")// Determine if the requested path is a directory.// If so, append index.html to the request.@@ -48,7 +48,7 @@ func serveWeb(w http.ResponseWriter, r *http.Request) {// Set a cache control max-age headermiddleware.SetCachingHeaders(w, r)- d, err := webFiles.ReadFile(path)+ d, err := fs.ReadFile(webFiles, path)if err != nil {log.Errorln(err)w.WriteHeader(http.StatusInternalServerError)diff --git a/core/core.go b/core/core.goindex 576a9121d8..aefcd3a20b 100644--- a/core/core.go+++ b/core/core.go@@ -112,12 +112,13 @@ func transitionToOfflineVideoStreamContent() {// Copy the logo to be the thumbnaillogo := data.GetLogoPath()- if err = utils.Copy(filepath.Join("data", logo), "webroot/thumbnail.jpg"); err != nil {+ dst := filepath.Join(config.TempDir, "thumbnail.jpg")+ if err = utils.Copy(filepath.Join("data", logo), dst); err != nil {log.Warnln(err)}// Delete the preview Gif- _ = os.Remove(path.Join(config.WebRoot, "preview.gif"))+ _ = os.Remove(path.Join(config.DataDirectory, "preview.gif"))}func resetDirectories() {@@ -129,7 +130,7 @@ func resetDirectories() {// Remove the previous thumbnaillogo := data.GetLogoPath()if utils.DoesFileExists(logo) {- err := utils.Copy(path.Join("data", logo), filepath.Join(config.WebRoot, "thumbnail.jpg"))+ err := utils.Copy(path.Join("data", logo), filepath.Join(config.DataDirectory, "thumbnail.jpg"))if err != nil {log.Warnln(err)}diff --git a/core/data/config.go b/core/data/config.goindex c421e5cf69..0266699818 100644--- a/core/data/config.go+++ b/core/data/config.go@@ -2,6 +2,7 @@ package dataimport ("errors"+ "os""path/filepath""sort""strings"@@ -9,6 +10,7 @@ import ("github.com/owncast/owncast/config""github.com/owncast/owncast/models"+ "github.com/owncast/owncast/static""github.com/owncast/owncast/utils"log "github.com/sirupsen/logrus")@@ -583,12 +585,10 @@ func VerifySettings() error {logoPath := GetLogoPath()if !utils.DoesFileExists(filepath.Join(config.DataDirectory, logoPath)) {- defaultLogo := filepath.Join(config.WebRoot, "img/logo.svg")log.Traceln(logoPath, "not found in the data directory. copying a default logo.")- if err := utils.Copy(defaultLogo, filepath.Join(config.DataDirectory, "logo.svg")); err != nil {- log.Errorln("error copying default logo: ", err)- }- if err := SetLogoPath("logo.svg"); err != nil {+ logo := static.GetLogo()+ os.WriteFile(filepath.Join(config.DataDirectory, "logo.png"), logo, 0o600)+ if err := SetLogoPath("logo.png"); err != nil {log.Errorln("unable to set default logo to logo.svg", err)}}diff --git a/core/transcoder/thumbnailGenerator.go b/core/transcoder/thumbnailGenerator.goindex 1026880051..bfc188ad97 100644--- a/core/transcoder/thumbnailGenerator.go+++ b/core/transcoder/thumbnailGenerator.go@@ -49,8 +49,8 @@ func StartThumbnailGenerator(chunkPath string, variantIndex int) {func fireThumbnailGenerator(segmentPath string, variantIndex int) error {// JPG takes less time to encode than PNG- outputFile := path.Join(config.WebRoot, "thumbnail.jpg")- previewGifFile := path.Join(config.WebRoot, "preview.gif")+ outputFile := path.Join(config.TempDir, "thumbnail.jpg")+ previewGifFile := path.Join(config.TempDir, "preview.gif")framePath := path.Join(segmentPath, strconv.Itoa(variantIndex))files, err := os.ReadDir(framePath)@@ -87,7 +87,7 @@ func fireThumbnailGenerator(segmentPath string, variantIndex int) error {mostRecentFile := path.Join(framePath, names[0])ffmpegPath := utils.ValidatedFfmpegPath(data.GetFfMpegPath())- outputFileTemp := path.Join(config.WebRoot, "tempthumbnail.jpg")+ outputFileTemp := path.Join(config.TempDir, "tempthumbnail.jpg")thumbnailCmdFlags := []string{ffmpegPath,@@ -117,7 +117,7 @@ func fireThumbnailGenerator(segmentPath string, variantIndex int) error {func makeAnimatedGifPreview(sourceFile string, outputFile string) {ffmpegPath := utils.ValidatedFfmpegPath(data.GetFfMpegPath())- outputFileTemp := path.Join(config.WebRoot, "temppreview.gif")+ outputFileTemp := path.Join(config.TempDir, "temppreview.gif")// Filter is pulled from https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/animatedGifFlags := []string{diff --git a/router/middleware/caching.go b/router/middleware/caching.goindex 4c6199554f..a3e46e0f67 100644--- a/router/middleware/caching.go+++ b/router/middleware/caching.go@@ -2,12 +2,8 @@ package middlewareimport ("net/http"- "os"- "path/filepath""strconv"- "github.com/amalfra/etag"- "github.com/owncast/owncast/config""github.com/owncast/owncast/utils")@@ -22,25 +18,6 @@ func setCacheSeconds(seconds int, w http.ResponseWriter) {w.Header().Set("Cache-Control", "public, max-age="+secondsStr)}-// ProcessEtags gets and sets ETags for caching purposes.-func ProcessEtags(w http.ResponseWriter, r *http.Request) int {- info, err := os.Stat(filepath.Join(config.WebRoot, r.URL.Path))- if err != nil {- return 0- }-- localContentEtag := etag.Generate(info.ModTime().String(), true)- if remoteEtagHeader := r.Header.Get("If-None-Match"); remoteEtagHeader != "" {- if remoteEtagHeader == localContentEtag {- return http.StatusNotModified- }- }-- w.Header().Set("Etag", localContentEtag)-- return 0-}-// SetCachingHeaders will set the cache control header of a response.func SetCachingHeaders(w http.ResponseWriter, r *http.Request) {setCacheSeconds(utils.GetCacheDurationSecondsForPath(r.URL.Path), w)diff --git a/router/router.go b/router/router.goindex 0344b7885b..f697c4ee9f 100644--- a/router/router.go+++ b/router/router.go@@ -25,15 +25,26 @@ import (// Start starts the router for the http, ws, and rtmp.func Start() error {- // static files+ // The admin web app.http.HandleFunc("/admin", middleware.RequireAdminAuth(controllers.IndexHandler))++ // The primary web app.http.HandleFunc("/", controllers.IndexHandler)+ // Return a single emoji image.+ http.HandleFunc("/img/emoji/", middleware.RequireAdminAuth(controllers.GetCustomEmojiImage))++ // return the logo+ http.HandleFunc("/logo", controllers.GetLogo)++ // return a logo that's compatible with external social networks+ http.HandleFunc("/logo/external", controllers.GetCompatibleLogo)+// status of the systemhttp.HandleFunc("/api/status", controllers.GetStatus)// custom emoji supported in the chat- http.HandleFunc("/api/emoji", controllers.GetCustomEmoji)+ http.HandleFunc("/api/emoji", controllers.GetCustomEmojiList)// chat rest apihttp.HandleFunc("/api/chat", middleware.RequireUserAccessToken(controllers.GetChatMessages))@@ -59,12 +70,6 @@ func Start() error {// list of all social platformshttp.HandleFunc("/api/socialplatforms", controllers.GetAllSocialPlatforms)- // return the logo- http.HandleFunc("/logo", controllers.GetLogo)-- // return a logo that's compatible with external social networks- http.HandleFunc("/logo/external", controllers.GetCompatibleLogo)-// return the list of video variants availablehttp.HandleFunc("/api/video/variants", controllers.GetVideoStreamOutputVariants)diff --git a/static/img/emoji/Reaper-gg.png b/static/img/emoji/Reaper-gg.pngnew file mode 100644index 0000000000..de6d571e62Binary files /dev/null and b/static/img/emoji/Reaper-gg.png differdiff --git a/static/img/emoji/Reaper-hi.png b/static/img/emoji/Reaper-hi.pngnew file mode 100644index 0000000000..dc6b6aedc4Binary files /dev/null and b/static/img/emoji/Reaper-hi.png differdiff --git a/static/img/emoji/Reaper-hype.png b/static/img/emoji/Reaper-hype.pngnew file mode 100644index 0000000000..2138dba904Binary files /dev/null and b/static/img/emoji/Reaper-hype.png differdiff --git a/static/img/emoji/Reaper-lol.png b/static/img/emoji/Reaper-lol.pngnew file mode 100644index 0000000000..8c4eff2646Binary files /dev/null and b/static/img/emoji/Reaper-lol.png differdiff --git a/static/img/emoji/Reaper-love.png b/static/img/emoji/Reaper-love.pngnew file mode 100644index 0000000000..5e0f3ba7b8Binary files /dev/null and b/static/img/emoji/Reaper-love.png differdiff --git a/static/img/emoji/Reaper-rage.png b/static/img/emoji/Reaper-rage.pngnew file mode 100644index 0000000000..3da0a5d83dBinary files /dev/null and b/static/img/emoji/Reaper-rage.png differdiff --git a/static/img/emoji/Reaper-rip.png b/static/img/emoji/Reaper-rip.pngnew file mode 100644index 0000000000..89c13c789dBinary files /dev/null and b/static/img/emoji/Reaper-rip.png differdiff --git a/static/img/emoji/Reaper-wtf.png b/static/img/emoji/Reaper-wtf.pngnew file mode 100644index 0000000000..e21adb6a20Binary files /dev/null and b/static/img/emoji/Reaper-wtf.png differdiff --git a/static/img/emoji/ac-box.png b/static/img/emoji/ac-box.pngnew file mode 100644index 0000000000..18bd9b35dfBinary files /dev/null and b/static/img/emoji/ac-box.png differdiff --git a/static/img/emoji/ac-construction.png b/static/img/emoji/ac-construction.pngnew file mode 100644index 0000000000..ee2b6f3c35Binary files /dev/null and b/static/img/emoji/ac-construction.png differdiff --git a/static/img/emoji/ac-fossil.png b/static/img/emoji/ac-fossil.pngnew file mode 100644index 0000000000..16d4fad73dBinary files /dev/null and b/static/img/emoji/ac-fossil.png differdiff --git a/static/img/emoji/ac-item-leaf.png b/static/img/emoji/ac-item-leaf.pngnew file mode 100644index 0000000000..6abede7b1aBinary files /dev/null and b/static/img/emoji/ac-item-leaf.png differdiff --git a/static/img/emoji/ac-kkslider.png b/static/img/emoji/ac-kkslider.pngnew file mode 100644index 0000000000..309d768f5cBinary files /dev/null and b/static/img/emoji/ac-kkslider.png differdiff --git a/static/img/emoji/ac-moneytree.png b/static/img/emoji/ac-moneytree.pngnew file mode 100644index 0000000000..3e370acd49Binary files /dev/null and b/static/img/emoji/ac-moneytree.png differdiff --git a/static/img/emoji/ac-mosquito.png b/static/img/emoji/ac-mosquito.pngnew file mode 100644index 0000000000..50ddb4110dBinary files /dev/null and b/static/img/emoji/ac-mosquito.png differdiff --git a/static/img/emoji/ac-shirt.png b/static/img/emoji/ac-shirt.pngnew file mode 100644index 0000000000..41ab1d8debBinary files /dev/null and b/static/img/emoji/ac-shirt.png differdiff --git a/static/img/emoji/ac-song.png b/static/img/emoji/ac-song.pngnew file mode 100644index 0000000000..dfe9d847c6Binary files /dev/null and b/static/img/emoji/ac-song.png differdiff --git a/static/img/emoji/ac-tree.png b/static/img/emoji/ac-tree.pngnew file mode 100644index 0000000000..499ee4ec4cBinary files /dev/null and b/static/img/emoji/ac-tree.png differdiff --git a/static/img/emoji/ac-turnip.png b/static/img/emoji/ac-turnip.pngnew file mode 100644index 0000000000..893ef9cffdBinary files /dev/null and b/static/img/emoji/ac-turnip.png differdiff --git a/static/img/emoji/ac-weeds.png b/static/img/emoji/ac-weeds.pngnew file mode 100644index 0000000000..6d3b237169Binary files /dev/null and b/static/img/emoji/ac-weeds.png differdiff --git a/static/img/emoji/alert.gif b/static/img/emoji/alert.gifnew file mode 100644index 0000000000..43b4b981e3Binary files /dev/null and b/static/img/emoji/alert.gif differdiff --git a/static/img/emoji/bananadance.gif b/static/img/emoji/bananadance.gifnew file mode 100644index 0000000000..da6f470bc9Binary files /dev/null and b/static/img/emoji/bananadance.gif differdiff --git a/static/img/emoji/bb8.png b/static/img/emoji/bb8.pngnew file mode 100644index 0000000000..e97e3f3d57Binary files /dev/null and b/static/img/emoji/bb8.png differdiff --git a/static/img/emoji/beerparrot.gif b/static/img/emoji/beerparrot.gifnew file mode 100644index 0000000000..2cd83ee150Binary files /dev/null and b/static/img/emoji/beerparrot.gif differdiff --git a/static/img/emoji/bells.png b/static/img/emoji/bells.pngnew file mode 100644index 0000000000..1a20ab0402Binary files /dev/null and b/static/img/emoji/bells.png differdiff --git a/static/img/emoji/birthdaypartyparrot.gif b/static/img/emoji/birthdaypartyparrot.gifnew file mode 100644index 0000000000..4c166eabb4Binary files /dev/null and b/static/img/emoji/birthdaypartyparrot.gif differdiff --git a/static/img/emoji/blacklightsaber.png b/static/img/emoji/blacklightsaber.pngnew file mode 100644index 0000000000..1a537968adBinary files /dev/null and b/static/img/emoji/blacklightsaber.png differdiff --git a/static/img/emoji/bluelightsaber.png b/static/img/emoji/bluelightsaber.pngnew file mode 100644index 0000000000..b509c73eacBinary files /dev/null and b/static/img/emoji/bluelightsaber.png differdiff --git a/static/img/emoji/bluntparrot.gif b/static/img/emoji/bluntparrot.gifnew file mode 100644index 0000000000..6d33f7d381Binary files /dev/null and b/static/img/emoji/bluntparrot.gif differdiff --git a/static/img/emoji/bobaparrot.gif b/static/img/emoji/bobaparrot.gifnew file mode 100644index 0000000000..17ecdfad90Binary files /dev/null and b/static/img/emoji/bobaparrot.gif differdiff --git a/static/img/emoji/cakeparrot.gif b/static/img/emoji/cakeparrot.gifnew file mode 100644index 0000000000..8ddb47f046Binary files /dev/null and b/static/img/emoji/cakeparrot.gif differdiff --git a/static/img/emoji/chewbacca.png b/static/img/emoji/chewbacca.pngnew file mode 100644index 0000000000..4cae67bbe4Binary files /dev/null and b/static/img/emoji/chewbacca.png differdiff --git a/static/img/emoji/chillparrot.gif b/static/img/emoji/chillparrot.gifnew file mode 100644index 0000000000..0d7a560e19Binary files /dev/null and b/static/img/emoji/chillparrot.gif differdiff --git a/static/img/emoji/christmasparrot.gif b/static/img/emoji/christmasparrot.gifnew file mode 100644index 0000000000..417c3e074aBinary files /dev/null and b/static/img/emoji/christmasparrot.gif differdiff --git a/static/img/emoji/coffeeparrot.gif b/static/img/emoji/coffeeparrot.gifnew file mode 100644index 0000000000..3a935d2295Binary files /dev/null and b/static/img/emoji/coffeeparrot.gif differdiff --git a/static/img/emoji/confusedparrot.gif b/static/img/emoji/confusedparrot.gifnew file mode 100644index 0000000000..e641f43937Binary files /dev/null and b/static/img/emoji/confusedparrot.gif differdiff --git a/static/img/emoji/copparrot.gif b/static/img/emoji/copparrot.gifnew file mode 100644index 0000000000..b41a4744d0Binary files /dev/null and b/static/img/emoji/copparrot.gif differdiff --git a/static/img/emoji/coronavirus.png b/static/img/emoji/coronavirus.pngnew file mode 100644index 0000000000..6c65664854Binary files /dev/null and b/static/img/emoji/coronavirus.png differdiff --git a/static/img/emoji/covid19parrot.gif b/static/img/emoji/covid19parrot.gifnew file mode 100644index 0000000000..70beb621b8Binary files /dev/null and b/static/img/emoji/covid19parrot.gif differdiff --git a/static/img/emoji/cryptoparrot.gif b/static/img/emoji/cryptoparrot.gifnew file mode 100644index 0000000000..acd98d0db8Binary files /dev/null and b/static/img/emoji/cryptoparrot.gif differdiff --git a/static/img/emoji/dabparrot.gif b/static/img/emoji/dabparrot.gifnew file mode 100644index 0000000000..5f95dd4a22Binary files /dev/null and b/static/img/emoji/dabparrot.gif differdiff --git a/static/img/emoji/dadparrot.gif b/static/img/emoji/dadparrot.gifnew file mode 100644index 0000000000..5e025ddc51Binary files /dev/null and b/static/img/emoji/dadparrot.gif differdiff --git a/static/img/emoji/daftpunkparrot.gif b/static/img/emoji/daftpunkparrot.gifnew file mode 100644index 0000000000..be7a1cf312Binary files /dev/null and b/static/img/emoji/daftpunkparrot.gif differdiff --git a/static/img/emoji/darkbeerparrot.gif b/static/img/emoji/darkbeerparrot.gifnew file mode 100644index 0000000000..c37edb504dBinary files /dev/null and b/static/img/emoji/darkbeerparrot.gif differdiff --git a/static/img/emoji/darkmodeparrot.gif b/static/img/emoji/darkmodeparrot.gifnew file mode 100644index 0000000000..b9ed2051d9Binary files /dev/null and b/static/img/emoji/darkmodeparrot.gif differdiff --git a/static/img/emoji/darth_vader.png b/static/img/emoji/darth_vader.pngnew file mode 100644index 0000000000..44f43d03d0Binary files /dev/null and b/static/img/emoji/darth_vader.png differdiff --git a/static/img/emoji/dealwithitparrot.gif b/static/img/emoji/dealwithitparrot.gifnew file mode 100644index 0000000000..f501e5ea5eBinary files /dev/null and b/static/img/emoji/dealwithitparrot.gif differdiff --git a/static/img/emoji/death_star.png b/static/img/emoji/death_star.pngnew file mode 100644index 0000000000..003a28a569Binary files /dev/null and b/static/img/emoji/death_star.png differdiff --git a/static/img/emoji/discoparrot.gif b/static/img/emoji/discoparrot.gifnew file mode 100644index 0000000000..47a7548426Binary files /dev/null and b/static/img/emoji/discoparrot.gif differdiff --git a/static/img/emoji/division-gg.png b/static/img/emoji/division-gg.pngnew file mode 100644index 0000000000..d704b46d44Binary files /dev/null and b/static/img/emoji/division-gg.png differdiff --git a/static/img/emoji/division-hi.png b/static/img/emoji/division-hi.pngnew file mode 100644index 0000000000..437b368501Binary files /dev/null and b/static/img/emoji/division-hi.png differdiff --git a/static/img/emoji/division-hype.png b/static/img/emoji/division-hype.pngnew file mode 100644index 0000000000..b6260bc954Binary files /dev/null and b/static/img/emoji/division-hype.png differdiff --git a/static/img/emoji/division-lol.png b/static/img/emoji/division-lol.pngnew file mode 100644index 0000000000..d085493f40Binary files /dev/null and b/static/img/emoji/division-lol.png differdiff --git a/static/img/emoji/division-omg.png b/static/img/emoji/division-omg.pngnew file mode 100644index 0000000000..b1100cfc99Binary files /dev/null and b/static/img/emoji/division-omg.png differdiff --git a/static/img/emoji/division-rage.png b/static/img/emoji/division-rage.pngnew file mode 100644index 0000000000..55d13a3e7bBinary files /dev/null and b/static/img/emoji/division-rage.png differdiff --git a/static/img/emoji/division-rip.png b/static/img/emoji/division-rip.pngnew file mode 100644index 0000000000..f57c78b4acBinary files /dev/null and b/static/img/emoji/division-rip.png differdiff --git a/static/img/emoji/division-wtf.png b/static/img/emoji/division-wtf.pngnew file mode 100644index 0000000000..654cde903eBinary files /dev/null and b/static/img/emoji/division-wtf.png differdiff --git a/static/img/emoji/docparrot.gif b/static/img/emoji/docparrot.gifnew file mode 100644index 0000000000..2fb502de5eBinary files /dev/null and b/static/img/emoji/docparrot.gif differdiff --git a/static/img/emoji/donutparrot.gif b/static/img/emoji/donutparrot.gifnew file mode 100644index 0000000000..9137e90665Binary files /dev/null and b/static/img/emoji/donutparrot.gif differdiff --git a/static/img/emoji/doom_mad.gif b/static/img/emoji/doom_mad.gifnew file mode 100644index 0000000000..1f124b810fBinary files /dev/null and b/static/img/emoji/doom_mad.gif differdiff --git a/static/img/emoji/empire.png b/static/img/emoji/empire.pngnew file mode 100644index 0000000000..da2fb8c953Binary files /dev/null and b/static/img/emoji/empire.png differdiff --git a/static/img/emoji/everythingsfineparrot.gif b/static/img/emoji/everythingsfineparrot.gifnew file mode 100644index 0000000000..5680c322ebBinary files /dev/null and b/static/img/emoji/everythingsfineparrot.gif differdiff --git a/static/img/emoji/evilparrot.gif b/static/img/emoji/evilparrot.gifnew file mode 100644index 0000000000..edb93c02d8Binary files /dev/null and b/static/img/emoji/evilparrot.gif differdiff --git a/static/img/emoji/explodyparrot.gif b/static/img/emoji/explodyparrot.gifnew file mode 100644index 0000000000..387005d36eBinary files /dev/null and b/static/img/emoji/explodyparrot.gif differdiff --git a/static/img/emoji/fixparrot.gif b/static/img/emoji/fixparrot.gifnew file mode 100644index 0000000000..655d423a80Binary files /dev/null and b/static/img/emoji/fixparrot.gif differdiff --git a/static/img/emoji/flyingmoneyparrot.gif b/static/img/emoji/flyingmoneyparrot.gifnew file mode 100644index 0000000000..abf389dd58Binary files /dev/null and b/static/img/emoji/flyingmoneyparrot.gif differdiff --git a/static/img/emoji/footballparrot.gif b/static/img/emoji/footballparrot.gifnew file mode 100644index 0000000000..49472b74acBinary files /dev/null and b/static/img/emoji/footballparrot.gif differdiff --git a/static/img/emoji/gabe1.png b/static/img/emoji/gabe1.pngnew file mode 100644index 0000000000..89b8c4e5e9Binary files /dev/null and b/static/img/emoji/gabe1.png differdiff --git a/static/img/emoji/gabe2.png b/static/img/emoji/gabe2.pngnew file mode 100644index 0000000000..987d91cf32Binary files /dev/null and b/static/img/emoji/gabe2.png differdiff --git a/static/img/emoji/gentlemanparrot.gif b/static/img/emoji/gentlemanparrot.gifnew file mode 100644index 0000000000..8e8f05bb7dBinary files /dev/null and b/static/img/emoji/gentlemanparrot.gif differdiff --git a/static/img/emoji/githubparrot.gif b/static/img/emoji/githubparrot.gifnew file mode 100644index 0000000000..1d7bd14ad9Binary files /dev/null and b/static/img/emoji/githubparrot.gif differdiff --git a/static/img/emoji/goomba.gif b/static/img/emoji/goomba.gifnew file mode 100644index 0000000000..c6bb719e7eBinary files /dev/null and b/static/img/emoji/goomba.gif differdiff --git a/static/img/emoji/gothparrot.gif b/static/img/emoji/gothparrot.gifnew file mode 100644index 0000000000..361b68ecfeBinary files /dev/null and b/static/img/emoji/gothparrot.gif differdiff --git a/static/img/emoji/hamburgerparrot.gif b/static/img/emoji/hamburgerparrot.gifnew file mode 100644index 0000000000..192b0ff17bBinary files /dev/null and b/static/img/emoji/hamburgerparrot.gif differdiff --git a/static/img/emoji/harrypotterparrot.gif b/static/img/emoji/harrypotterparrot.gifnew file mode 100644index 0000000000..032a37e917Binary files /dev/null and b/static/img/emoji/harrypotterparrot.gif differdiff --git a/static/img/emoji/headbangingparrot.gif b/static/img/emoji/headbangingparrot.gifnew file mode 100644index 0000000000..9aad2ecb60Binary files /dev/null and b/static/img/emoji/headbangingparrot.gif differdiff --git a/static/img/emoji/headingparrot.gif b/static/img/emoji/headingparrot.gifnew file mode 100644index 0000000000..b17002c55eBinary files /dev/null and b/static/img/emoji/headingparrot.gif differdiff --git a/static/img/emoji/headsetparrot.gif b/static/img/emoji/headsetparrot.gifnew file mode 100644index 0000000000..516a04f1f1Binary files /dev/null and b/static/img/emoji/headsetparrot.gif differdiff --git a/static/img/emoji/hmmparrot.gif b/static/img/emoji/hmmparrot.gifnew file mode 100644index 0000000000..223a6c2519Binary files /dev/null and b/static/img/emoji/hmmparrot.gif differdiff --git a/static/img/emoji/hypnoparrot.gif b/static/img/emoji/hypnoparrot.gifnew file mode 100644index 0000000000..a6a0983d03Binary files /dev/null and b/static/img/emoji/hypnoparrot.gif differdiff --git a/static/img/emoji/icecreamparrot.gif b/static/img/emoji/icecreamparrot.gifnew file mode 100644index 0000000000..0a5093fd01Binary files /dev/null and b/static/img/emoji/icecreamparrot.gif differdiff --git a/static/img/emoji/illuminatiparrot.gif b/static/img/emoji/illuminatiparrot.gifnew file mode 100644index 0000000000..a0c4e7981bBinary files /dev/null and b/static/img/emoji/illuminatiparrot.gif differdiff --git a/static/img/emoji/jediparrot.gif b/static/img/emoji/jediparrot.gifnew file mode 100644index 0000000000..410ca698b6Binary files /dev/null and b/static/img/emoji/jediparrot.gif differdiff --git a/static/img/emoji/keanu_thanks.gif b/static/img/emoji/keanu_thanks.gifnew file mode 100644index 0000000000..989b9b7592Binary files /dev/null and b/static/img/emoji/keanu_thanks.gif differdiff --git a/static/img/emoji/laptop_parrot.gif b/static/img/emoji/laptop_parrot.gifnew file mode 100644index 0000000000..b14bb1846dBinary files /dev/null and b/static/img/emoji/laptop_parrot.gif differdiff --git a/static/img/emoji/loveparrot.gif b/static/img/emoji/loveparrot.gifnew file mode 100644index 0000000000..c0d14edcaeBinary files /dev/null and b/static/img/emoji/loveparrot.gif differdiff --git a/static/img/emoji/mandalorian.png b/static/img/emoji/mandalorian.pngnew file mode 100644index 0000000000..7db4a3b8ecBinary files /dev/null and b/static/img/emoji/mandalorian.png differdiff --git a/static/img/emoji/margaritaparrot.gif b/static/img/emoji/margaritaparrot.gifnew file mode 100644index 0000000000..10a8c6a839Binary files /dev/null and b/static/img/emoji/margaritaparrot.gif differdiff --git a/static/img/emoji/mario.gif b/static/img/emoji/mario.gifnew file mode 100644index 0000000000..87f1133331Binary files /dev/null and b/static/img/emoji/mario.gif differdiff --git a/static/img/emoji/matrixparrot.gif b/static/img/emoji/matrixparrot.gifnew file mode 100644index 0000000000..7281a84354Binary files /dev/null and b/static/img/emoji/matrixparrot.gif differdiff --git a/static/img/emoji/meldparrot.gif b/static/img/emoji/meldparrot.gifnew file mode 100644index 0000000000..ae4605336dBinary files /dev/null and b/static/img/emoji/meldparrot.gif differdiff --git a/static/img/emoji/metalparrot.gif b/static/img/emoji/metalparrot.gifnew file mode 100644index 0000000000..f358b2fffbBinary files /dev/null and b/static/img/emoji/metalparrot.gif differdiff --git a/static/img/emoji/michaeljacksonparrot.gif b/static/img/emoji/michaeljacksonparrot.gifnew file mode 100644index 0000000000..cfa840500fBinary files /dev/null and b/static/img/emoji/michaeljacksonparrot.gif differdiff --git a/static/img/emoji/moonparrot.gif b/static/img/emoji/moonparrot.gifnew file mode 100644index 0000000000..098938ab23Binary files /dev/null and b/static/img/emoji/moonparrot.gif differdiff --git a/static/img/emoji/moonwalkingparrot.gif b/static/img/emoji/moonwalkingparrot.gifnew file mode 100644index 0000000000..873f828f57Binary files /dev/null and b/static/img/emoji/moonwalkingparrot.gif differdiff --git a/static/img/emoji/mustacheparrot.gif b/static/img/emoji/mustacheparrot.gifnew file mode 100644index 0000000000..e71fe28d88Binary files /dev/null and b/static/img/emoji/mustacheparrot.gif differdiff --git a/static/img/emoji/nicolas_cage_party.gif b/static/img/emoji/nicolas_cage_party.gifnew file mode 100644index 0000000000..541431710aBinary files /dev/null and b/static/img/emoji/nicolas_cage_party.gif differdiff --git a/static/img/emoji/nodeparrot.gif b/static/img/emoji/nodeparrot.gifnew file mode 100644index 0000000000..6735b0b302Binary files /dev/null and b/static/img/emoji/nodeparrot.gif differdiff --git a/static/img/emoji/norwegianblueparrot.gif b/static/img/emoji/norwegianblueparrot.gifnew file mode 100644index 0000000000..0aa9583ec8Binary files /dev/null and b/static/img/emoji/norwegianblueparrot.gif differdiff --git a/static/img/emoji/opensourceparrot.gif b/static/img/emoji/opensourceparrot.gifnew file mode 100644index 0000000000..706774342dBinary files /dev/null and b/static/img/emoji/opensourceparrot.gif differdiff --git a/static/img/emoji/originalparrot.gif b/static/img/emoji/originalparrot.gifnew file mode 100644index 0000000000..428cc22399Binary files /dev/null and b/static/img/emoji/originalparrot.gif differdiff --git a/static/img/emoji/owncast.png b/static/img/emoji/owncast.pngnew file mode 100644index 0000000000..6e7fdc9b3bBinary files /dev/null and b/static/img/emoji/owncast.png differdiff --git a/static/img/emoji/palpatine.png b/static/img/emoji/palpatine.pngnew file mode 100644index 0000000000..ca10fe6730Binary files /dev/null and b/static/img/emoji/palpatine.png differdiff --git a/static/img/emoji/papalparrot.gif b/static/img/emoji/papalparrot.gifnew file mode 100644index 0000000000..16ec6ba257Binary files /dev/null and b/static/img/emoji/papalparrot.gif differdiff --git a/static/img/emoji/parrot.gif b/static/img/emoji/parrot.gifnew file mode 100644index 0000000000..b8c261a015Binary files /dev/null and b/static/img/emoji/parrot.gif differdiff --git a/static/img/emoji/parrotnotfound.gif b/static/img/emoji/parrotnotfound.gifnew file mode 100644index 0000000000..a039df9fc5Binary files /dev/null and b/static/img/emoji/parrotnotfound.gif differdiff --git a/static/img/emoji/partyparrot.gif b/static/img/emoji/partyparrot.gifnew file mode 100644index 0000000000..b88ecc41faBinary files /dev/null and b/static/img/emoji/partyparrot.gif differdiff --git a/static/img/emoji/phparrot.gif b/static/img/emoji/phparrot.gifnew file mode 100644index 0000000000..95e33b4f22Binary files /dev/null and b/static/img/emoji/phparrot.gif differdiff --git a/static/img/emoji/pirateparrot.gif b/static/img/emoji/pirateparrot.gifnew file mode 100644index 0000000000..028848abc1Binary files /dev/null and b/static/img/emoji/pirateparrot.gif differdiff --git a/static/img/emoji/pizzaparrot.gif b/static/img/emoji/pizzaparrot.gifnew file mode 100644index 0000000000..56d9dfc296Binary files /dev/null and b/static/img/emoji/pizzaparrot.gif differdiff --git a/static/img/emoji/pokeparrot.gif b/static/img/emoji/pokeparrot.gifnew file mode 100644index 0000000000..a9adc861adBinary files /dev/null and b/static/img/emoji/pokeparrot.gif differdiff --git a/static/img/emoji/popcornparrot.gif b/static/img/emoji/popcornparrot.gifnew file mode 100644index 0000000000..65b8585af7Binary files /dev/null and b/static/img/emoji/popcornparrot.gif differdiff --git a/static/img/emoji/porg.png b/static/img/emoji/porg.pngnew file mode 100644index 0000000000..68d08bfa11Binary files /dev/null and b/static/img/emoji/porg.png differdiff --git a/static/img/emoji/portalparrot.gif b/static/img/emoji/portalparrot.gifnew file mode 100644index 0000000000..5971fbd2abBinary files /dev/null and b/static/img/emoji/portalparrot.gif differdiff --git a/static/img/emoji/pumpkinparrot.gif b/static/img/emoji/pumpkinparrot.gifnew file mode 100644index 0000000000..f453ce26f2Binary files /dev/null and b/static/img/emoji/pumpkinparrot.gif differdiff --git a/static/img/emoji/quadparrot.gif b/static/img/emoji/quadparrot.gifnew file mode 100644index 0000000000..9f1e3195bfBinary files /dev/null and b/static/img/emoji/quadparrot.gif differdiff --git a/static/img/emoji/r2d2.png b/static/img/emoji/r2d2.pngnew file mode 100644index 0000000000..0a7fa098feBinary files /dev/null and b/static/img/emoji/r2d2.png differdiff --git a/static/img/emoji/redenvelopeparrot.gif b/static/img/emoji/redenvelopeparrot.gifnew file mode 100644index 0000000000..b40c76cf60Binary files /dev/null and b/static/img/emoji/redenvelopeparrot.gif differdiff --git a/static/img/emoji/ripparrot.gif b/static/img/emoji/ripparrot.gifnew file mode 100644index 0000000000..164250ecd4Binary files /dev/null and b/static/img/emoji/ripparrot.gif differdiff --git a/static/img/emoji/rotatingparrot.gif b/static/img/emoji/rotatingparrot.gifnew file mode 100644index 0000000000..1916cd0be7Binary files /dev/null and b/static/img/emoji/rotatingparrot.gif differdiff --git a/static/img/emoji/ryangoslingparrot.gif b/static/img/emoji/ryangoslingparrot.gifnew file mode 100644index 0000000000..f37d170c46Binary files /dev/null and b/static/img/emoji/ryangoslingparrot.gif differdiff --git a/static/img/emoji/rythmicalparrot.gif b/static/img/emoji/rythmicalparrot.gifnew file mode 100644index 0000000000..db3e52d626Binary files /dev/null and b/static/img/emoji/rythmicalparrot.gif differdiff --git a/static/img/emoji/sadparrot.gif b/static/img/emoji/sadparrot.gifnew file mode 100644index 0000000000..25b500dd05Binary files /dev/null and b/static/img/emoji/sadparrot.gif differdiff --git a/static/img/emoji/schnitzelparrot.gif b/static/img/emoji/schnitzelparrot.gifnew file mode 100644index 0000000000..00d22d7ab1Binary files /dev/null and b/static/img/emoji/schnitzelparrot.gif differdiff --git a/static/img/emoji/scienceparrot.gif b/static/img/emoji/scienceparrot.gifnew file mode 100644index 0000000000..b5e434250cBinary files /dev/null and b/static/img/emoji/scienceparrot.gif differdiff --git a/static/img/emoji/shipitparrot.gif b/static/img/emoji/shipitparrot.gifnew file mode 100644index 0000000000..8d1ed30f78Binary files /dev/null and b/static/img/emoji/shipitparrot.gif differdiff --git a/static/img/emoji/shufflepartyparrot.gif b/static/img/emoji/shufflepartyparrot.gifnew file mode 100644index 0000000000..7e754cbd0fBinary files /dev/null and b/static/img/emoji/shufflepartyparrot.gif differdiff --git a/static/img/emoji/sintparrot.gif b/static/img/emoji/sintparrot.gifnew file mode 100644index 0000000000..26f083bba9Binary files /dev/null and b/static/img/emoji/sintparrot.gif differdiff --git a/static/img/emoji/sithparrot.gif b/static/img/emoji/sithparrot.gifnew file mode 100644index 0000000000..b039e67f35Binary files /dev/null and b/static/img/emoji/sithparrot.gif differdiff --git a/static/img/emoji/skiparrot.gif b/static/img/emoji/skiparrot.gifnew file mode 100644index 0000000000..7cfa3c00c0Binary files /dev/null and b/static/img/emoji/skiparrot.gif differdiff --git a/static/img/emoji/sleepingparrot.gif b/static/img/emoji/sleepingparrot.gifnew file mode 100644index 0000000000..6f0b6dde44Binary files /dev/null and b/static/img/emoji/sleepingparrot.gif differdiff --git a/static/img/emoji/sonic.gif b/static/img/emoji/sonic.gifnew file mode 100644index 0000000000..e9a9f4bac8Binary files /dev/null and b/static/img/emoji/sonic.gif differdiff --git a/static/img/emoji/spyparrot.gif b/static/img/emoji/spyparrot.gifnew file mode 100644index 0000000000..031b64e04dBinary files /dev/null and b/static/img/emoji/spyparrot.gif differdiff --git a/static/img/emoji/stalkerparrot.gif b/static/img/emoji/stalkerparrot.gifnew file mode 100644index 0000000000..349d6494bcBinary files /dev/null and b/static/img/emoji/stalkerparrot.gif differdiff --git a/static/img/emoji/starwars.png b/static/img/emoji/starwars.pngnew file mode 100644index 0000000000..cef654682aBinary files /dev/null and b/static/img/emoji/starwars.png differdiff --git a/static/img/emoji/stayhomeparrot.gif b/static/img/emoji/stayhomeparrot.gifnew file mode 100644index 0000000000..800adafd87Binary files /dev/null and b/static/img/emoji/stayhomeparrot.gif differdiff --git a/static/img/emoji/storm_trooper.gif b/static/img/emoji/storm_trooper.gifnew file mode 100644index 0000000000..0f66de7adaBinary files /dev/null and b/static/img/emoji/storm_trooper.gif differdiff --git a/static/img/emoji/stormtrooper.png b/static/img/emoji/stormtrooper.pngnew file mode 100644index 0000000000..ae95358645Binary files /dev/null and b/static/img/emoji/stormtrooper.png differdiff --git a/static/img/emoji/sushiparrot.gif b/static/img/emoji/sushiparrot.gifnew file mode 100644index 0000000000..27220188afBinary files /dev/null and b/static/img/emoji/sushiparrot.gif differdiff --git a/static/img/emoji/tacoparrot.gif b/static/img/emoji/tacoparrot.gifnew file mode 100644index 0000000000..aed1d15d6fBinary files /dev/null and b/static/img/emoji/tacoparrot.gif differdiff --git a/static/img/emoji/tennisparrot.gif b/static/img/emoji/tennisparrot.gifnew file mode 100644index 0000000000..97efeddd15Binary files /dev/null and b/static/img/emoji/tennisparrot.gif differdiff --git a/static/img/emoji/thanks.png b/static/img/emoji/thanks.pngnew file mode 100644index 0000000000..80e0d32cb5Binary files /dev/null and b/static/img/emoji/thanks.png differdiff --git a/static/img/emoji/thumbsupparrot.gif b/static/img/emoji/thumbsupparrot.gifnew file mode 100644index 0000000000..df37921943Binary files /dev/null and b/static/img/emoji/thumbsupparrot.gif differdiff --git a/static/img/emoji/tiedyeparrot.gif b/static/img/emoji/tiedyeparrot.gifnew file mode 100644index 0000000000..b9a138efafBinary files /dev/null and b/static/img/emoji/tiedyeparrot.gif differdiff --git a/static/img/emoji/tpparrot.gif b/static/img/emoji/tpparrot.gifnew file mode 100644index 0000000000..a64738427fBinary files /dev/null and b/static/img/emoji/tpparrot.gif differdiff --git a/static/img/emoji/transparront.gif b/static/img/emoji/transparront.gifnew file mode 100644index 0000000000..f9ecf8b376Binary files /dev/null and b/static/img/emoji/transparront.gif differdiff --git a/static/img/emoji/twinsparrot.gif b/static/img/emoji/twinsparrot.gifnew file mode 100644index 0000000000..c503979df5Binary files /dev/null and b/static/img/emoji/twinsparrot.gif differdiff --git a/static/img/emoji/upvoteparrot.gif b/static/img/emoji/upvoteparrot.gifnew file mode 100644index 0000000000..f4c8fb4177Binary files /dev/null and b/static/img/emoji/upvoteparrot.gif differdiff --git a/static/img/emoji/vikingparrot.gif b/static/img/emoji/vikingparrot.gifnew file mode 100644index 0000000000..049e112ca3Binary files /dev/null and b/static/img/emoji/vikingparrot.gif differdiff --git a/static/img/emoji/wesmart.png b/static/img/emoji/wesmart.pngnew file mode 100644index 0000000000..5676faf23aBinary files /dev/null and b/static/img/emoji/wesmart.png differdiff --git a/static/img/emoji/wfhparrot.gif b/static/img/emoji/wfhparrot.gifnew file mode 100644index 0000000000..02469db933Binary files /dev/null and b/static/img/emoji/wfhparrot.gif differdiff --git a/static/img/emoji/wineparrot.gif b/static/img/emoji/wineparrot.gifnew file mode 100644index 0000000000..e726f3c7d6Binary files /dev/null and b/static/img/emoji/wineparrot.gif differdiff --git a/static/img/emoji/yoda.gif b/static/img/emoji/yoda.gifnew file mode 100644index 0000000000..117958c7f0Binary files /dev/null and b/static/img/emoji/yoda.gif differdiff --git a/static/img/logo.png b/static/img/logo.pngnew file mode 100644index 0000000000..32e5c4e6e4Binary files /dev/null and b/static/img/logo.png differdiff --git a/static/metadata.html.tmpl b/static/metadata.html.tmpldeleted file mode 100644index fb1ab78785..0000000000--- a/static/metadata.html.tmpl+++ /dev/null@@ -1,83 +0,0 @@-<!doctype html>--<html lang="en">-<head>- <meta charset="utf-8">-- <title>{{.Name}}</title>- <meta name="description" content="{{.Summary}}">-- <meta property="og:title" content="{{.Name}}">- <meta property="og:site_name" content="{{.Name}}">- <meta property="og:url" content="{{.RequestedURL}}">- <meta property="og:description" content="{{.Summary}}">- <meta property="og:type" content="video.other">- <meta property="video:tag" content="{{.TagsString}}">-- <meta property="og:image" content="{{.Thumbnail}}">- <meta property="og:image:url" content="{{.Thumbnail}}">- <meta property="og:image:alt" content="{{.Image}}">-- <meta property="og:video" content='{{.RequestedURL}}embed/video' />- <meta property="og:video:secure_url" content='{{.RequestedURL}}embed/video' />- <meta property="og:video:height" content="315" />- <meta property="og:video:width" content="560" />- <meta property="og:video:type" content="text/html" />- <meta property="og:video:actor" content="{{.Name}}" />-- <meta property="twitter:title" content="{{.Name}}">- <meta property="twitter:url" content="{{.RequestedURL}}">- <meta property="twitter:description" content="{{.Summary}}">- <meta property="twitter:image" content="{{.Image}}">- <meta property="twitter:card" content="player" />- <meta property="twitter:player" content='{{.RequestedURL}}embed/video' />- <meta property="twitter:player:width" content="560" />- <meta property="twitter:player:height" content="315" />-- <link rel="apple-touch-icon" sizes="57x57" href="/img/favicon/apple-icon-57x57.png">- <link rel="apple-touch-icon" sizes="60x60" href="/img/favicon/apple-icon-60x60.png">- <link rel="apple-touch-icon" sizes="72x72" href="/img/favicon/apple-icon-72x72.png">- <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon/apple-icon-76x76.png">- <link rel="apple-touch-icon" sizes="114x114" href="/img/favicon/apple-icon-114x114.png">- <link rel="apple-touch-icon" sizes="120x120" href="/img/favicon/apple-icon-120x120.png">- <link rel="apple-touch-icon" sizes="144x144" href="/img/favicon/apple-icon-144x144.png">- <link rel="apple-touch-icon" sizes="152x152" href="/img/favicon/apple-icon-152x152.png">- <link rel="apple-touch-icon" sizes="180x180" href="/img/favicon/apple-icon-180x180.png">- <link rel="icon" type="image/png" sizes="192x192" href="/img/favicon/android-icon-192x192.png">- <link rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32x32.png">- <link rel="icon" type="image/png" sizes="96x96" href="/img/favicon/favicon-96x96.png">- <link rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16x16.png">- <link rel="manifest" href="/manifest.json">-- <link rel="authorization_endpoint" href="/api/auth/provider/indieauth">-- <meta name="msapplication-TileColor" content="#ffffff">- <meta name="msapplication-TileImage" content="/img/favicon/ms-icon-144x144.png">- <meta name="theme-color" content="#ffffff">--</head>--<body>- <h1>{{.Name}}</h1>-- <center>- <img src="{{.Thumbnail}}" width=10% />- </center>-- <h3>{{.Summary}}</h3>-- {{range .Tags}}- <li>{{.}}</li>- {{end}}-- <br/>-- <h3>Links for {{.Name}}:</h3>-- {{range .SocialHandles}}- <li><a href="{{.URL}}">{{.Platform}}</a></li>- {{end}}---</body>-</html>diff --git a/static/static.go b/static/static.goindex 5aa5945bd3..e706109bef 100644--- a/static/static.go+++ b/static/static.go@@ -3,6 +3,8 @@ package staticimport ("embed""html/template"+ "io/fs"+ "log""os""path/filepath"@@ -16,14 +18,30 @@ import (var webFiles embed.FS// GetWeb will return an embedded filesystem reference to the admin web app.-func GetWeb() embed.FS {- return webFiles+func GetWeb() fs.FS {+ wf, err := fs.Sub(webFiles, "web")+ if err != nil {+ log.Fatal(err)+ }+ return wf+}++//go:embed img/emoji/*+var emojiFiles embed.FS++// GetEmoji will return the emoji files.+func GetEmoji() fs.FS {+ ef, err := fs.Sub(emojiFiles, "img/emoji")+ if err != nil {+ log.Fatal(err)+ }+ return ef}// GetWebIndexTemplate will return the bot/scraper metadata template.func GetWebIndexTemplate() (*template.Template, error) {webFiles := GetWeb()- name := "web/index.html"+ name := "index.html"t, err := template.ParseFS(webFiles, name)if err != nil {return nil, errors.Wrap(err, "unable to open index.html template")@@ -41,6 +59,14 @@ func GetOfflineSegment() []byte {return getFileSystemStaticFileOrDefault("offline.ts", offlineVideoSegment)}+//go:embed img/logo.png+var logo []byte++// GetLogo will return the logo data.+func GetLogo() []byte {+ return getFileSystemStaticFileOrDefault("img/logo.png", logo)+}+func getFileSystemStaticFileOrDefault(path string, defaultData []byte) []byte {fullPath := filepath.Join("static", path)data, err := os.ReadFile(fullPath) //nolint: gosec