diff --git a/activity.go b/activity.go index deae9d3..57853e2 100644 --- a/activity.go +++ b/activity.go @@ -713,6 +713,8 @@ func xonkxonk(user *WhatAbout, item junk.Junk, origin string) *Honk { prev.Noise = xonk.Noise prev.Precis = xonk.Precis prev.Date = xonk.Date + prev.Donks = xonk.Donks + prev.Onts = xonk.Onts updatehonk(prev) return nil } diff --git a/web.go b/web.go index 2571887..83d2aa3 100644 --- a/web.go +++ b/web.go @@ -847,6 +847,7 @@ func edithonkpage(w http.ResponseWriter, r *http.Request) { } honks := []*Honk{honk} + donksforhonks(honks) reverbolate(u.UserID, honks) templinfo := getInfo(r) templinfo["HonkCSRF"] = login.GetCSRF("honkhonk", r) @@ -854,6 +855,9 @@ func edithonkpage(w http.ResponseWriter, r *http.Request) { templinfo["Noise"] = noise templinfo["ServerMessage"] = "honk edit" templinfo["UpdateXID"] = honk.XID + if len(honk.Donks) > 0 { + templinfo["SavedFile"] = honk.Donks[0].XID + } err := readviews.Execute(w, "honkpage.html", templinfo) if err != nil { log.Print(err)