From 86738e30b832edb93fe506599921581f752aebbc Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 26 Aug 2023 17:42:14 -0400 Subject: [PATCH] if develmode, relative links for emoji --- fun.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fun.go b/fun.go index d013ac9..17fc380 100644 --- a/fun.go +++ b/fun.go @@ -432,6 +432,9 @@ var emucache = cache.New(cache.Options{Filler: func(ename string) (Emu, bool) { continue } url := fmt.Sprintf("https://%s/emu/%s%s", serverName, fname, ext) + if develMode { + url = fmt.Sprintf("/emu/%s%s", fname, ext) + } return Emu{ID: url, Name: ename, Type: "image/" + ext[1:]}, true } return Emu{Name: ename, ID: "", Type: "image/png"}, true