commit 36b2f2b4e6e94168f5ac2b502d1af0f432198c16
parent 73e9cca7019c15a92cb4cd320034652590513198
Author: tobi <31960611+tsmethurst@users.noreply.github.com>
Date: Mon, 21 Mar 2022 17:10:31 +0100
don't error if content property is nil (#436)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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() != "" {