missing datadir in the memetizer

This commit is contained in:
Ted Unangst 2021-11-14 23:30:41 -05:00
parent 066a6806bd
commit 4d1635f440
1 changed files with 1 additions and 1 deletions

2
fun.go
View File

@ -409,7 +409,7 @@ func memetize(honk *Honk) {
if name[0] == ' ' { if name[0] == ' ' {
name = name[1:] name = name[1:]
} }
fd, err := os.Open("memes/" + name) fd, err := os.Open(dataDir + "/memes/" + name)
if err != nil { if err != nil {
log.Printf("no meme for %s", name) log.Printf("no meme for %s", name)
return x return x