all repos — honk @ 42c2b270b13a0fa3a6989f9fa71259732e0d1f9f

my fork of honk

better handling of attachments during edit
Ted Unangst tedu@tedunangst.com
Tue, 17 Sep 2019 10:44:00 -0400
commit

42c2b270b13a0fa3a6989f9fa71259732e0d1f9f

parent

82641e81b2b76dbbf46fc9d2173b1999ab2cff7a

2 files changed, 6 insertions(+), 0 deletions(-)

jump to
M activity.goactivity.go

@@ -713,6 +713,8 @@ }

prev.Noise = xonk.Noise prev.Precis = xonk.Precis prev.Date = xonk.Date + prev.Donks = xonk.Donks + prev.Onts = xonk.Onts updatehonk(prev) return nil }
M web.goweb.go

@@ -847,6 +847,7 @@ noise = honk.Precis + "\n\n" + noise

} honks := []*Honk{honk} + donksforhonks(honks) reverbolate(u.UserID, honks) templinfo := getInfo(r) templinfo["HonkCSRF"] = login.GetCSRF("honkhonk", r)

@@ -854,6 +855,9 @@ templinfo["Honks"] = honks

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)