Prevent panic on non-string outbox and inbox

This commit is contained in:
Matt Baer 2020-04-09 10:58:33 -04:00
parent 10584314ee
commit 48a817613c

View file

@ -29,8 +29,8 @@ func NewRemoteActor(iri string) (RemoteActor, error) {
return RemoteActor{}, err
}
outbox := info["outbox"].(string)
inbox := info["inbox"].(string)
outbox, _ := info["outbox"].(string)
inbox, _ := info["inbox"].(string)
var endpoints map[string]interface{}
var sharedInbox string
if info["endpoints"] != nil {