mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user