summaryrefslogtreecommitdiff
path: root/internal/ap/extract.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-03-21 17:10:31 +0100
committerLibravatar GitHub <noreply@github.com>2022-03-21 17:10:31 +0100
commit36b2f2b4e6e94168f5ac2b502d1af0f432198c16 (patch)
treeee1c5e5bfb68e3f57b2bfca8cd1f396b2a1f546a /internal/ap/extract.go
parent[bugfix] Close ReadClosers properly in the media package (#434) (diff)
downloadgotosocial-36b2f2b4e6e94168f5ac2b502d1af0f432198c16.tar.xz
don't error if content property is nil (#436)
Diffstat (limited to 'internal/ap/extract.go')
-rw-r--r--internal/ap/extract.go2
1 files changed, 1 insertions, 1 deletions
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() != "" {