From 36b2f2b4e6e94168f5ac2b502d1af0f432198c16 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 21 Mar 2022 17:10:31 +0100 Subject: [PATCH] don't error if content property is nil (#436) --- internal/ap/extract.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ap/extract.go b/internal/ap/extract.go index 49dac7186..7160fd5aa 100644 --- a/internal/ap/extract.go +++ b/internal/ap/extract.go @@ -336,7 +336,7 @@ func ExtractPublicKeyForOwner(i WithPublicKey, forOwner *url.URL) (*rsa.PublicKe func ExtractContent(i WithContent) (string, error) { contentProperty := i.GetActivityStreamsContent() if contentProperty == nil { - return "", errors.New("content property was nil") + return "", nil } for iter := contentProperty.Begin(); iter != contentProperty.End(); iter = iter.Next() { if iter.IsXMLSchemaString() && iter.GetXMLSchemaString() != "" {