[bugfix] Fix error extracting status content: no content found (#598)

* don't return error if no content found in Activity

* add test for content extraction

* go fmt
This commit is contained in:
tobi 2022-05-23 17:12:46 +02:00 committed by GitHub
commit f5a4f4321a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 59 additions and 11 deletions

View file

@ -92,6 +92,10 @@ func noteWithMentions1() vocab.ActivityStreamsNote {
note.SetActivityStreamsTag(tags)
content := streams.NewActivityStreamsContentProperty()
content.AppendXMLSchemaString("hey @f0x and @dumpsterqueer")
note.SetActivityStreamsContent(content)
return note
}