summaryrefslogtreecommitdiff
path: root/internal/typeutils/converter_test.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-04-26 10:47:21 +0200
committerLibravatar GitHub <noreply@github.com>2022-04-26 10:47:21 +0200
commit225983810827a2c71a330a401a308d69f659a042 (patch)
tree08c2cb58cdc13ce1da39a58a5bf967f7101b1831 /internal/typeutils/converter_test.go
parent[bugfix] Allow processing of .png files where checksum is not correct (#487) (diff)
downloadgotosocial-225983810827a2c71a330a401a308d69f659a042.tar.xz
[bugfix] Fix CWs not showing sometimes (#488)
* allow summaries that are parsed as iris * test parsing a status with iri summary
Diffstat (limited to 'internal/typeutils/converter_test.go')
-rw-r--r--internal/typeutils/converter_test.go48
1 files changed, 48 insertions, 0 deletions
diff --git a/internal/typeutils/converter_test.go b/internal/typeutils/converter_test.go
index 44cd8cc46..c77a10844 100644
--- a/internal/typeutils/converter_test.go
+++ b/internal/typeutils/converter_test.go
@@ -319,6 +319,54 @@ const (
"url": "https://files.mastodon.social/accounts/headers/000/000/001/original/c91b871f294ea63e.png"
}
}`
+ publicStatusActivityJson = `
+ {
+ "@context": [
+ "https://www.w3.org/ns/activitystreams",
+ {
+ "ostatus": "http://ostatus.org#",
+ "atomUri": "ostatus:atomUri",
+ "inReplyToAtomUri": "ostatus:inReplyToAtomUri",
+ "conversation": "ostatus:conversation",
+ "sensitive": "as:sensitive",
+ "toot": "http://joinmastodon.org/ns#",
+ "votersCount": "toot:votersCount"
+ }
+ ],
+ "id": "http://fossbros-anonymous.io/users/foss_satan/statuses/108138763199405167",
+ "type": "Note",
+ "summary": "reading: Punishment and Reward in the Corporate University",
+ "inReplyTo": "http://fossbros-anonymous.io/users/foss_satan/statuses/108138729399508469",
+ "published": "2022-04-15T23:49:37Z",
+ "url": "http://fossbros-anonymous.io/@foss_satan/108138763199405167",
+ "attributedTo": "http://fossbros-anonymous.io/users/foss_satan",
+ "to": [
+ "https://www.w3.org/ns/activitystreams#Public"
+ ],
+ "cc": [
+ "http://fossbros-anonymous.io/users/foss_satan/followers"
+ ],
+ "sensitive": true,
+ "atomUri": "http://fossbros-anonymous.io/users/foss_satan/statuses/108138763199405167",
+ "inReplyToAtomUri": "http://fossbros-anonymous.io/users/foss_satan/statuses/108138729399508469",
+ "content": "<p>&gt; So we have to examine critical thinking as a signifier, dynamic and ambiguous. It has a normative definition, a tacit definition, and an ideal definition. One of the hallmarks of graduate training is learning to comprehend those definitions and applying the correct one as needed for professional success.</p>",
+ "contentMap": {
+ "en": "<p>&gt; So we have to examine critical thinking as a signifier, dynamic and ambiguous. It has a normative definition, a tacit definition, and an ideal definition. One of the hallmarks of graduate training is learning to comprehend those definitions and applying the correct one as needed for professional success.</p>"
+ },
+ "attachment": [],
+ "tag": [],
+ "replies": {
+ "id": "http://fossbros-anonymous.io/users/foss_satan/statuses/108138763199405167/replies",
+ "type": "Collection",
+ "first": {
+ "type": "CollectionPage",
+ "next": "http://fossbros-anonymous.io/users/foss_satan/statuses/108138763199405167/replies?only_other_accounts=true&page=true",
+ "partOf": "http://fossbros-anonymous.io/users/foss_satan/statuses/108138763199405167/replies",
+ "items": []
+ }
+ }
+ }
+ `
)
type TypeUtilsTestSuite struct {