all repos — honk @ f0ab4821dfea2066ff97aa0a6bafc16a33d7300c

my fork of honk

fix memes
Ted Unangst tedu@tedunangst.com
Wed, 18 Sep 2019 14:02:49 -0400
commit

f0ab4821dfea2066ff97aa0a6bafc16a33d7300c

parent

a41e46c3d6d96b857c4f2dd625082c75543afda2

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M activity.goactivity.go

@@ -844,6 +844,7 @@ if !h.Public {

jo["directMessage"] = true } translate(h) + h.Noise = re_memes.ReplaceAllString(h.Noise, "") jo["summary"] = h.Precis jo["content"] = ontologize(mentionize(h.Noise)) if strings.HasPrefix(h.Precis, "DZ:") {
M fun.gofun.go

@@ -45,6 +45,7 @@ if !h.Public {

h.Style += " limited" } translate(h) + h.Noise = re_memes.ReplaceAllString(h.Noise, "") if h.Whofore == 2 || h.Whofore == 3 { h.URL = h.XID if h.What != "bonked" {

@@ -121,7 +122,6 @@

noise = strings.TrimSpace(noise) noise = quickrename(noise, honk.UserID) noise = obfusbreak(noise) - noise = re_memes.ReplaceAllString(noise, "") honk.Noise = noise honk.Onts = oneofakind(ontologies(honk.Noise))

@@ -277,7 +277,7 @@ ct := http.DetectContentType(peek[:n])

fd.Close() url := fmt.Sprintf("https://%s/meme/%s", serverName, name) - res, err := stmtSaveFile.Exec("", name, url, ct, 0, "") + res, err := stmtSaveFile.Exec("", name, name, url, ct, 0, "") if err != nil { log.Printf("error saving meme: %s", err) return x