allow ximport by handle as well

This commit is contained in:
Ted Unangst 2019-07-08 21:18:37 -04:00
parent 29da0f3cdf
commit f8ec7800f4
1 changed files with 5 additions and 0 deletions

View File

@ -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
}