From f8ec7800f45e7fd47f741f7d66e22217070c8953 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 8 Jul 2019 21:18:37 -0400 Subject: [PATCH] allow ximport by handle as well --- honk.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/honk.go b/honk.go index 5ea3057..8fb6379 100644 --- a/honk.go +++ b/honk.go @@ -423,8 +423,13 @@ func inbox(w http.ResponseWriter, r *http.Request) { 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 }