allow ximport by handle as well
This commit is contained in:
parent
29da0f3cdf
commit
f8ec7800f4
5
honk.go
5
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue