if develmode, relative links for emoji
Ted Unangst tedu@tedunangst.com
Sat, 26 Aug 2023 17:42:14 -0400
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
fun.go
→
fun.go
@@ -432,6 +432,9 @@ if err != nil {
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