From 106edfb77d56c39240d2e855dec11a46ea66b3c2 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 12 Apr 2019 15:26:29 -0400 Subject: [PATCH] save our own emus so they appear in web view --- honk.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/honk.go b/honk.go index cb3a0ef..cec4be4 100644 --- a/honk.go +++ b/honk.go @@ -998,6 +998,13 @@ func savehonk(w http.ResponseWriter, r *http.Request) { d.URL = url honk.Donks = append(honk.Donks, &d) } + herd := herdofemus(honk.Noise) + for _, e := range herd { + donk := savedonk(e.ID, e.Name, "image/png") + if donk != nil { + honk.Donks = append(honk.Donks, donk) + } + } aud := strings.Join(honk.Audience, " ") res, err := stmtSaveHonk.Exec(userinfo.UserID, what, "", xid, rid,