Prevent panic on non-string `outbox` and `inbox`
parent
10584314ee
commit
48a817613c
|
@ -29,8 +29,8 @@ func NewRemoteActor(iri string) (RemoteActor, error) {
|
||||||
return RemoteActor{}, err
|
return RemoteActor{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
outbox := info["outbox"].(string)
|
outbox, _ := info["outbox"].(string)
|
||||||
inbox := info["inbox"].(string)
|
inbox, _ := info["inbox"].(string)
|
||||||
var endpoints map[string]interface{}
|
var endpoints map[string]interface{}
|
||||||
var sharedInbox string
|
var sharedInbox string
|
||||||
if info["endpoints"] != nil {
|
if info["endpoints"] != nil {
|
||||||
|
|
Loading…
Reference in New Issue