save our own emus so they appear in web view

This commit is contained in:
Ted Unangst 2019-04-12 15:26:29 -04:00
parent 80f8f9b935
commit 106edfb77d
1 changed files with 7 additions and 0 deletions

View File

@ -998,6 +998,13 @@ func savehonk(w http.ResponseWriter, r *http.Request) {
d.URL = url d.URL = url
honk.Donks = append(honk.Donks, &d) 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, " ") aud := strings.Join(honk.Audience, " ")
res, err := stmtSaveHonk.Exec(userinfo.UserID, what, "", xid, rid, res, err := stmtSaveHonk.Exec(userinfo.UserID, what, "", xid, rid,