mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 12:12:25 -05: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:
parent
a09e101931
commit
f5a4f4321a
4 changed files with 59 additions and 11 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue