fix image preview

This commit is contained in:
Ted Unangst 2019-10-11 10:30:23 -04:00
parent 2c071a8f60
commit 262919a8aa
1 changed files with 5 additions and 1 deletions

6
web.go
View File

@ -1086,8 +1086,12 @@ func submithonk(w http.ResponseWriter, r *http.Request) {
} }
var d Donk var d Donk
d.FileID = fileid d.FileID = fileid
d.XID = xid
d.Desc = desc
d.URL = url
d.Local = true
honk.Donks = append(honk.Donks, &d) honk.Donks = append(honk.Donks, &d)
donkxid = d.XID donkxid = xid
} }
} else { } else {
xid := donkxid xid := donkxid