diff options
author | 2022-05-23 17:12:46 +0200 | |
---|---|---|
committer | 2022-05-23 16:12:46 +0100 | |
commit | f5a4f4321a96afacde920701c1f13125fc20a10c (patch) | |
tree | 260d942bb83e502bfa0cc84f80a86d329323e2d4 /internal/ap/extract_test.go | |
parent | [bugfix] If status URL is empty, use URI instead and don't log unnecessary er... (diff) | |
download | gotosocial-f5a4f4321a96afacde920701c1f13125fc20a10c.tar.xz |
[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
Diffstat (limited to 'internal/ap/extract_test.go')
-rw-r--r-- | internal/ap/extract_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/ap/extract_test.go b/internal/ap/extract_test.go index 0d4e57337..b76717068 100644 --- a/internal/ap/extract_test.go +++ b/internal/ap/extract_test.go @@ -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 } |