From 48a817613cf2b4a2a08acabc7d23bae1886eb4cc Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Thu, 9 Apr 2020 10:58:33 -0400 Subject: [PATCH] Prevent panic on non-string `outbox` and `inbox` --- remoteActor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remoteActor.go b/remoteActor.go index 0658fb6..99dabe1 100644 --- a/remoteActor.go +++ b/remoteActor.go @@ -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 {