From 262919a8aa9dfecc936bdc484281ffbc6bd4d276 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 11 Oct 2019 10:30:23 -0400 Subject: [PATCH] fix image preview --- web.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web.go b/web.go index 79d6620..5ba2b39 100644 --- a/web.go +++ b/web.go @@ -1086,8 +1086,12 @@ func submithonk(w http.ResponseWriter, r *http.Request) { } var d Donk d.FileID = fileid + d.XID = xid + d.Desc = desc + d.URL = url + d.Local = true honk.Donks = append(honk.Donks, &d) - donkxid = d.XID + donkxid = xid } } else { xid := donkxid