all repos — honk @ 59a68be1772bddd26be45425997a23e7477d6f8e

my fork of honk

save name as desc if absent
Ted Unangst tedu@tedunangst.com
Mon, 09 Sep 2019 11:06:57 -0400
commit

59a68be1772bddd26be45425997a23e7477d6f8e

parent

9c41d372a392c2d6195ef4a32c7c244869282e90

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M honk.gohonk.go

@@ -1275,6 +1275,9 @@ }

xid += ".txt" } desc := r.FormValue("donkdesc") + if desc == "" { + desc = name + } url := fmt.Sprintf("https://%s/d/%s", serverName, xid) res, err := stmtSaveFile.Exec(xid, name, desc, url, media, 1, data) if err != nil {