1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import Foundation
import UIKit
import XCTest
@testable import OldFella
extension SecureSessionUploadFixture {
static let threadJSON = """
{
"thread": {
"parent": {
"post": {
"uri": "at://did:plc:reader/app.bsky.feed.post/root",
"cid": "root-cid",
"author": {
"did": "did:plc:reader",
"handle": "reader.bsky.social"
},
"record": {
"text": "Root"
},
"replyCount": 7
},
"parent": null
},
"post": {
"uri": "at://did:plc:reader/app.bsky.feed.post/selected",
"cid": "selected-cid",
"author": {
"did": "did:plc:reader",
"handle": "reader.bsky.social"
},
"record": {
"text": "Selected",
"reply": {
"root": {
"uri": "at://did:plc:reader/app.bsky.feed.post/root",
"cid": "root-cid"
},
"parent": {
"uri": "at://did:plc:reader/app.bsky.feed.post/root",
"cid": "root-cid"
}
}
}
},
"replies": [
{
"post": {
"uri": "at://did:plc:reader/app.bsky.feed.post/reply",
"cid": "reply-cid",
"author": {
"did": "did:plc:reader",
"handle": "reader.bsky.social"
},
"record": {
"text": "Reply"
}
},
"replies": [
{
"post": {
"uri": "at://did:plc:reader/app.bsky.feed.post/nested",
"cid": "nested-cid",
"author": {
"did": "did:plc:reader",
"handle": "reader.bsky.social"
},
"record": {
"text": "Nested"
}
},
"replies": []
}
]
}
]
}
}
"""
}