all repos — honk @ 64176ea8e361e9a672884d51ed94d28499185b16

my fork of honk

allow ximport by handle as well
Ted Unangst tedu@tedunangst.com
Mon, 08 Jul 2019 21:18:37 -0400
commit

64176ea8e361e9a672884d51ed94d28499185b16

parent

071b0b07c557aaa083185fdc0444898127ea7a5b

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

jump to
M honk.gohonk.go

@@ -423,8 +423,13 @@ }

func ximport(w http.ResponseWriter, r *http.Request) { xid := r.FormValue("xid") + x := investigate(xid) + if x != "" { + xid = x + } j, err := GetJunk(xid) if err != nil { + http.Error(w, "error getting external object", http.StatusInternalServerError) log.Printf("error getting external object: %s", err) return }