@atproto/bsky 0.0.44 → 0.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/api/app/bsky/actor/getSuggestions.d.ts.map +1 -1
  3. package/dist/api/app/bsky/actor/getSuggestions.js +26 -13
  4. package/dist/api/app/bsky/actor/getSuggestions.js.map +1 -1
  5. package/dist/api/app/bsky/actor/searchActors.js +1 -0
  6. package/dist/api/app/bsky/actor/searchActors.js.map +1 -1
  7. package/dist/api/app/bsky/actor/searchActorsTypeahead.js +1 -0
  8. package/dist/api/app/bsky/actor/searchActorsTypeahead.js.map +1 -1
  9. package/dist/api/app/bsky/feed/searchPosts.js +10 -0
  10. package/dist/api/app/bsky/feed/searchPosts.js.map +1 -1
  11. package/dist/auth-verifier.d.ts.map +1 -1
  12. package/dist/config.d.ts +4 -0
  13. package/dist/config.d.ts.map +1 -1
  14. package/dist/config.js +10 -0
  15. package/dist/config.js.map +1 -1
  16. package/dist/context.d.ts +2 -0
  17. package/dist/context.d.ts.map +1 -1
  18. package/dist/context.js +3 -0
  19. package/dist/context.js.map +1 -1
  20. package/dist/data-plane/server/db/pagination.d.ts +5 -5
  21. package/dist/data-plane/server/db/pagination.d.ts.map +1 -1
  22. package/dist/data-plane/server/routes/records.d.ts.map +1 -1
  23. package/dist/data-plane/server/util.d.ts.map +1 -1
  24. package/dist/hydration/hydrator.d.ts.map +1 -1
  25. package/dist/hydration/hydrator.js +8 -1
  26. package/dist/hydration/hydrator.js.map +1 -1
  27. package/dist/hydration/util.d.ts.map +1 -1
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +7 -0
  30. package/dist/index.js.map +1 -1
  31. package/dist/lexicon/index.d.ts +18 -0
  32. package/dist/lexicon/index.d.ts.map +1 -1
  33. package/dist/lexicon/index.js +23 -1
  34. package/dist/lexicon/index.js.map +1 -1
  35. package/dist/lexicon/lexicons.d.ts +291 -0
  36. package/dist/lexicon/lexicons.d.ts.map +1 -1
  37. package/dist/lexicon/lexicons.js +307 -0
  38. package/dist/lexicon/lexicons.js.map +1 -1
  39. package/dist/lexicon/types/app/bsky/embed/record.d.ts +3 -0
  40. package/dist/lexicon/types/app/bsky/embed/record.d.ts.map +1 -1
  41. package/dist/lexicon/types/app/bsky/embed/record.js.map +1 -1
  42. package/dist/lexicon/types/app/bsky/feed/defs.d.ts +38 -0
  43. package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
  44. package/dist/lexicon/types/app/bsky/feed/defs.js +35 -1
  45. package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
  46. package/dist/lexicon/types/app/bsky/feed/generator.d.ts +2 -0
  47. package/dist/lexicon/types/app/bsky/feed/generator.d.ts.map +1 -1
  48. package/dist/lexicon/types/app/bsky/feed/generator.js.map +1 -1
  49. package/dist/lexicon/types/app/bsky/feed/searchPosts.d.ts +18 -0
  50. package/dist/lexicon/types/app/bsky/feed/searchPosts.d.ts.map +1 -1
  51. package/dist/lexicon/types/app/bsky/feed/sendInteractions.d.ts +40 -0
  52. package/dist/lexicon/types/app/bsky/feed/sendInteractions.d.ts.map +1 -0
  53. package/dist/lexicon/types/app/bsky/feed/sendInteractions.js +3 -0
  54. package/dist/lexicon/types/app/bsky/feed/sendInteractions.js.map +1 -0
  55. package/dist/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.d.ts +40 -0
  56. package/dist/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.d.ts.map +1 -0
  57. package/dist/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.js +3 -0
  58. package/dist/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.js.map +1 -0
  59. package/dist/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.d.ts +2 -0
  60. package/dist/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.d.ts.map +1 -1
  61. package/dist/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.d.ts +20 -0
  62. package/dist/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.d.ts.map +1 -1
  63. package/dist/lexicon/types/com/atproto/server/createSession.d.ts +3 -1
  64. package/dist/lexicon/types/com/atproto/server/createSession.d.ts.map +1 -1
  65. package/dist/lexicon/types/com/atproto/server/getSession.d.ts +1 -0
  66. package/dist/lexicon/types/com/atproto/server/getSession.d.ts.map +1 -1
  67. package/dist/lexicon/types/com/atproto/server/updateEmail.d.ts +1 -0
  68. package/dist/lexicon/types/com/atproto/server/updateEmail.d.ts.map +1 -1
  69. package/dist/util/debug.d.ts.map +1 -1
  70. package/dist/views/index.d.ts +2 -2
  71. package/dist/views/index.d.ts.map +1 -1
  72. package/dist/views/index.js +29 -22
  73. package/dist/views/index.js.map +1 -1
  74. package/package.json +4 -4
  75. package/src/api/app/bsky/actor/getSuggestions.ts +28 -13
  76. package/src/api/app/bsky/actor/searchActors.ts +1 -0
  77. package/src/api/app/bsky/actor/searchActorsTypeahead.ts +1 -0
  78. package/src/api/app/bsky/feed/searchPosts.ts +10 -0
  79. package/src/config.ts +14 -0
  80. package/src/context.ts +5 -0
  81. package/src/hydration/hydrator.ts +9 -1
  82. package/src/index.ts +12 -0
  83. package/src/lexicon/index.ts +38 -0
  84. package/src/lexicon/lexicons.ts +336 -0
  85. package/src/lexicon/types/app/bsky/embed/record.ts +3 -0
  86. package/src/lexicon/types/app/bsky/feed/defs.ts +63 -0
  87. package/src/lexicon/types/app/bsky/feed/generator.ts +2 -0
  88. package/src/lexicon/types/app/bsky/feed/searchPosts.ts +18 -0
  89. package/src/lexicon/types/app/bsky/feed/sendInteractions.ts +49 -0
  90. package/src/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.ts +50 -0
  91. package/src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts +2 -0
  92. package/src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts +20 -0
  93. package/src/lexicon/types/com/atproto/server/createSession.ts +3 -1
  94. package/src/lexicon/types/com/atproto/server/getSession.ts +1 -0
  95. package/src/lexicon/types/com/atproto/server/updateEmail.ts +1 -0
  96. package/src/views/index.ts +27 -30
  97. package/tests/__snapshots__/feed-generation.test.ts.snap +15 -0
  98. package/tests/data-plane/__snapshots__/indexing.test.ts.snap +6 -0
  99. package/tests/views/__snapshots__/actor-search.test.ts.snap +2 -2
  100. package/tests/views/__snapshots__/author-feed.test.ts.snap +27 -0
  101. package/tests/views/__snapshots__/block-lists.test.ts.snap +3 -0
  102. package/tests/views/__snapshots__/blocks.test.ts.snap +3 -0
  103. package/tests/views/__snapshots__/list-feed.test.ts.snap +6 -0
  104. package/tests/views/__snapshots__/posts.test.ts.snap +9 -0
  105. package/tests/views/__snapshots__/timeline.test.ts.snap +259 -0
  106. package/tests/views/actor-search.test.ts +3 -3
  107. package/tests/views/blocks.test.ts +11 -2
@@ -68,6 +68,55 @@ Array [
68
68
  },
69
69
  "indexedAt": "1970-01-01T00:00:00.000Z",
70
70
  },
71
+ "reply": Object {
72
+ "parent": Object {
73
+ "$type": "app.bsky.feed.defs#notFoundPost",
74
+ "notFound": true,
75
+ "uri": "record(3)",
76
+ },
77
+ "root": Object {
78
+ "$type": "app.bsky.feed.defs#postView",
79
+ "author": Object {
80
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
81
+ "did": "user(0)",
82
+ "displayName": "ali",
83
+ "handle": "alice.test",
84
+ "labels": Array [
85
+ Object {
86
+ "cid": "cids(2)",
87
+ "cts": "1970-01-01T00:00:00.000Z",
88
+ "src": "user(0)",
89
+ "uri": "record(1)",
90
+ "val": "self-label-a",
91
+ },
92
+ Object {
93
+ "cid": "cids(2)",
94
+ "cts": "1970-01-01T00:00:00.000Z",
95
+ "src": "user(0)",
96
+ "uri": "record(1)",
97
+ "val": "self-label-b",
98
+ },
99
+ ],
100
+ "viewer": Object {
101
+ "blockedBy": false,
102
+ "muted": false,
103
+ },
104
+ },
105
+ "cid": "cids(3)",
106
+ "indexedAt": "1970-01-01T00:00:00.000Z",
107
+ "labels": Array [],
108
+ "likeCount": 3,
109
+ "record": Object {
110
+ "$type": "app.bsky.feed.post",
111
+ "createdAt": "1970-01-01T00:00:00.000000Z",
112
+ "text": "again",
113
+ },
114
+ "replyCount": 2,
115
+ "repostCount": 1,
116
+ "uri": "record(2)",
117
+ "viewer": Object {},
118
+ },
119
+ },
71
120
  },
72
121
  Object {
73
122
  "post": Object {
@@ -178,6 +227,55 @@ Array [
178
227
  "uri": "record(0)",
179
228
  "viewer": Object {},
180
229
  },
230
+ "reply": Object {
231
+ "parent": Object {
232
+ "$type": "app.bsky.feed.defs#notFoundPost",
233
+ "notFound": true,
234
+ "uri": "record(3)",
235
+ },
236
+ "root": Object {
237
+ "$type": "app.bsky.feed.defs#postView",
238
+ "author": Object {
239
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
240
+ "did": "user(0)",
241
+ "displayName": "ali",
242
+ "handle": "alice.test",
243
+ "labels": Array [
244
+ Object {
245
+ "cid": "cids(2)",
246
+ "cts": "1970-01-01T00:00:00.000Z",
247
+ "src": "user(0)",
248
+ "uri": "record(1)",
249
+ "val": "self-label-a",
250
+ },
251
+ Object {
252
+ "cid": "cids(2)",
253
+ "cts": "1970-01-01T00:00:00.000Z",
254
+ "src": "user(0)",
255
+ "uri": "record(1)",
256
+ "val": "self-label-b",
257
+ },
258
+ ],
259
+ "viewer": Object {
260
+ "blockedBy": false,
261
+ "muted": false,
262
+ },
263
+ },
264
+ "cid": "cids(3)",
265
+ "indexedAt": "1970-01-01T00:00:00.000Z",
266
+ "labels": Array [],
267
+ "likeCount": 3,
268
+ "record": Object {
269
+ "$type": "app.bsky.feed.post",
270
+ "createdAt": "1970-01-01T00:00:00.000000Z",
271
+ "text": "again",
272
+ },
273
+ "replyCount": 2,
274
+ "repostCount": 1,
275
+ "uri": "record(2)",
276
+ "viewer": Object {},
277
+ },
278
+ },
181
279
  },
182
280
  Object {
183
281
  "post": Object {
@@ -235,6 +333,9 @@ Array [
235
333
  ],
236
334
  "indexedAt": "1970-01-01T00:00:00.000Z",
237
335
  "labels": Array [],
336
+ "likeCount": 0,
337
+ "replyCount": 0,
338
+ "repostCount": 1,
238
339
  "uri": "record(6)",
239
340
  "value": Object {
240
341
  "$type": "app.bsky.feed.post",
@@ -549,6 +650,55 @@ Array [
549
650
  },
550
651
  "indexedAt": "1970-01-01T00:00:00.000Z",
551
652
  },
653
+ "reply": Object {
654
+ "parent": Object {
655
+ "$type": "app.bsky.feed.defs#notFoundPost",
656
+ "notFound": true,
657
+ "uri": "record(3)",
658
+ },
659
+ "root": Object {
660
+ "$type": "app.bsky.feed.defs#postView",
661
+ "author": Object {
662
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
663
+ "did": "user(0)",
664
+ "displayName": "ali",
665
+ "handle": "alice.test",
666
+ "labels": Array [
667
+ Object {
668
+ "cid": "cids(2)",
669
+ "cts": "1970-01-01T00:00:00.000Z",
670
+ "src": "user(0)",
671
+ "uri": "record(1)",
672
+ "val": "self-label-a",
673
+ },
674
+ Object {
675
+ "cid": "cids(2)",
676
+ "cts": "1970-01-01T00:00:00.000Z",
677
+ "src": "user(0)",
678
+ "uri": "record(1)",
679
+ "val": "self-label-b",
680
+ },
681
+ ],
682
+ "viewer": Object {
683
+ "blockedBy": false,
684
+ "muted": false,
685
+ },
686
+ },
687
+ "cid": "cids(3)",
688
+ "indexedAt": "1970-01-01T00:00:00.000Z",
689
+ "labels": Array [],
690
+ "likeCount": 3,
691
+ "record": Object {
692
+ "$type": "app.bsky.feed.post",
693
+ "createdAt": "1970-01-01T00:00:00.000000Z",
694
+ "text": "again",
695
+ },
696
+ "replyCount": 2,
697
+ "repostCount": 1,
698
+ "uri": "record(2)",
699
+ "viewer": Object {},
700
+ },
701
+ },
552
702
  },
553
703
  Object {
554
704
  "post": Object {
@@ -659,6 +809,55 @@ Array [
659
809
  "uri": "record(0)",
660
810
  "viewer": Object {},
661
811
  },
812
+ "reply": Object {
813
+ "parent": Object {
814
+ "$type": "app.bsky.feed.defs#notFoundPost",
815
+ "notFound": true,
816
+ "uri": "record(3)",
817
+ },
818
+ "root": Object {
819
+ "$type": "app.bsky.feed.defs#postView",
820
+ "author": Object {
821
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
822
+ "did": "user(0)",
823
+ "displayName": "ali",
824
+ "handle": "alice.test",
825
+ "labels": Array [
826
+ Object {
827
+ "cid": "cids(2)",
828
+ "cts": "1970-01-01T00:00:00.000Z",
829
+ "src": "user(0)",
830
+ "uri": "record(1)",
831
+ "val": "self-label-a",
832
+ },
833
+ Object {
834
+ "cid": "cids(2)",
835
+ "cts": "1970-01-01T00:00:00.000Z",
836
+ "src": "user(0)",
837
+ "uri": "record(1)",
838
+ "val": "self-label-b",
839
+ },
840
+ ],
841
+ "viewer": Object {
842
+ "blockedBy": false,
843
+ "muted": false,
844
+ },
845
+ },
846
+ "cid": "cids(3)",
847
+ "indexedAt": "1970-01-01T00:00:00.000Z",
848
+ "labels": Array [],
849
+ "likeCount": 3,
850
+ "record": Object {
851
+ "$type": "app.bsky.feed.post",
852
+ "createdAt": "1970-01-01T00:00:00.000000Z",
853
+ "text": "again",
854
+ },
855
+ "replyCount": 2,
856
+ "repostCount": 1,
857
+ "uri": "record(2)",
858
+ "viewer": Object {},
859
+ },
860
+ },
662
861
  },
663
862
  Object {
664
863
  "post": Object {
@@ -1009,6 +1208,9 @@ Array [
1009
1208
  "val": "test-label-3",
1010
1209
  },
1011
1210
  ],
1211
+ "likeCount": 0,
1212
+ "replyCount": 0,
1213
+ "repostCount": 0,
1012
1214
  "uri": "record(15)",
1013
1215
  "value": Object {
1014
1216
  "$type": "app.bsky.feed.post",
@@ -1510,6 +1712,9 @@ Array [
1510
1712
  "val": "test-label-3",
1511
1713
  },
1512
1714
  ],
1715
+ "likeCount": 0,
1716
+ "replyCount": 0,
1717
+ "repostCount": 0,
1513
1718
  "uri": "record(11)",
1514
1719
  "value": Object {
1515
1720
  "$type": "app.bsky.feed.post",
@@ -1534,6 +1739,9 @@ Array [
1534
1739
  "val": "test-label-3",
1535
1740
  },
1536
1741
  ],
1742
+ "likeCount": 2,
1743
+ "replyCount": 0,
1744
+ "repostCount": 0,
1537
1745
  "uri": "record(8)",
1538
1746
  "value": Object {
1539
1747
  "$type": "app.bsky.feed.post",
@@ -2167,6 +2375,9 @@ Array [
2167
2375
  "val": "test-label-3",
2168
2376
  },
2169
2377
  ],
2378
+ "likeCount": 2,
2379
+ "replyCount": 0,
2380
+ "repostCount": 0,
2170
2381
  "uri": "record(8)",
2171
2382
  "value": Object {
2172
2383
  "$type": "app.bsky.feed.post",
@@ -2214,6 +2425,9 @@ Array [
2214
2425
  ],
2215
2426
  "indexedAt": "1970-01-01T00:00:00.000Z",
2216
2427
  "labels": Array [],
2428
+ "likeCount": 0,
2429
+ "replyCount": 0,
2430
+ "repostCount": 1,
2217
2431
  "uri": "record(7)",
2218
2432
  "value": Object {
2219
2433
  "$type": "app.bsky.feed.post",
@@ -2419,6 +2633,9 @@ Array [
2419
2633
  "val": "test-label-3",
2420
2634
  },
2421
2635
  ],
2636
+ "likeCount": 0,
2637
+ "replyCount": 0,
2638
+ "repostCount": 0,
2422
2639
  "uri": "record(11)",
2423
2640
  "value": Object {
2424
2641
  "$type": "app.bsky.feed.post",
@@ -2443,6 +2660,9 @@ Array [
2443
2660
  "val": "test-label-3",
2444
2661
  },
2445
2662
  ],
2663
+ "likeCount": 2,
2664
+ "replyCount": 0,
2665
+ "repostCount": 0,
2446
2666
  "uri": "record(8)",
2447
2667
  "value": Object {
2448
2668
  "$type": "app.bsky.feed.post",
@@ -2608,6 +2828,9 @@ Array [
2608
2828
  "val": "test-label-3",
2609
2829
  },
2610
2830
  ],
2831
+ "likeCount": 0,
2832
+ "replyCount": 0,
2833
+ "repostCount": 0,
2611
2834
  "uri": "record(11)",
2612
2835
  "value": Object {
2613
2836
  "$type": "app.bsky.feed.post",
@@ -2858,6 +3081,9 @@ Array [
2858
3081
  "val": "test-label-3",
2859
3082
  },
2860
3083
  ],
3084
+ "likeCount": 0,
3085
+ "replyCount": 0,
3086
+ "repostCount": 0,
2861
3087
  "uri": "record(4)",
2862
3088
  "value": Object {
2863
3089
  "$type": "app.bsky.feed.post",
@@ -2882,6 +3108,9 @@ Array [
2882
3108
  "val": "test-label-3",
2883
3109
  },
2884
3110
  ],
3111
+ "likeCount": 2,
3112
+ "replyCount": 0,
3113
+ "repostCount": 0,
2885
3114
  "uri": "record(2)",
2886
3115
  "value": Object {
2887
3116
  "$type": "app.bsky.feed.post",
@@ -3532,6 +3761,9 @@ Array [
3532
3761
  "val": "test-label-3",
3533
3762
  },
3534
3763
  ],
3764
+ "likeCount": 2,
3765
+ "replyCount": 0,
3766
+ "repostCount": 0,
3535
3767
  "uri": "record(2)",
3536
3768
  "value": Object {
3537
3769
  "$type": "app.bsky.feed.post",
@@ -3579,6 +3811,9 @@ Array [
3579
3811
  ],
3580
3812
  "indexedAt": "1970-01-01T00:00:00.000Z",
3581
3813
  "labels": Array [],
3814
+ "likeCount": 0,
3815
+ "replyCount": 0,
3816
+ "repostCount": 1,
3582
3817
  "uri": "record(0)",
3583
3818
  "value": Object {
3584
3819
  "$type": "app.bsky.feed.post",
@@ -3770,6 +4005,9 @@ Array [
3770
4005
  "val": "test-label-3",
3771
4006
  },
3772
4007
  ],
4008
+ "likeCount": 0,
4009
+ "replyCount": 0,
4010
+ "repostCount": 0,
3773
4011
  "uri": "record(4)",
3774
4012
  "value": Object {
3775
4013
  "$type": "app.bsky.feed.post",
@@ -4019,6 +4257,9 @@ Array [
4019
4257
  "val": "test-label-3",
4020
4258
  },
4021
4259
  ],
4260
+ "likeCount": 0,
4261
+ "replyCount": 0,
4262
+ "repostCount": 0,
4022
4263
  "uri": "record(2)",
4023
4264
  "value": Object {
4024
4265
  "$type": "app.bsky.feed.post",
@@ -4043,6 +4284,9 @@ Array [
4043
4284
  "val": "test-label-3",
4044
4285
  },
4045
4286
  ],
4287
+ "likeCount": 2,
4288
+ "replyCount": 0,
4289
+ "repostCount": 0,
4046
4290
  "uri": "record(1)",
4047
4291
  "value": Object {
4048
4292
  "$type": "app.bsky.feed.post",
@@ -4519,6 +4763,9 @@ Array [
4519
4763
  "val": "test-label-3",
4520
4764
  },
4521
4765
  ],
4766
+ "likeCount": 2,
4767
+ "replyCount": 0,
4768
+ "repostCount": 0,
4522
4769
  "uri": "record(1)",
4523
4770
  "value": Object {
4524
4771
  "$type": "app.bsky.feed.post",
@@ -4566,6 +4813,9 @@ Array [
4566
4813
  ],
4567
4814
  "indexedAt": "1970-01-01T00:00:00.000Z",
4568
4815
  "labels": Array [],
4816
+ "likeCount": 0,
4817
+ "replyCount": 0,
4818
+ "repostCount": 1,
4569
4819
  "uri": "record(0)",
4570
4820
  "value": Object {
4571
4821
  "$type": "app.bsky.feed.post",
@@ -4729,6 +4979,9 @@ Array [
4729
4979
  "val": "test-label-3",
4730
4980
  },
4731
4981
  ],
4982
+ "likeCount": 0,
4983
+ "replyCount": 0,
4984
+ "repostCount": 0,
4732
4985
  "uri": "record(2)",
4733
4986
  "value": Object {
4734
4987
  "$type": "app.bsky.feed.post",
@@ -5395,6 +5648,9 @@ Array [
5395
5648
  "val": "test-label-3",
5396
5649
  },
5397
5650
  ],
5651
+ "likeCount": 0,
5652
+ "replyCount": 0,
5653
+ "repostCount": 0,
5398
5654
  "uri": "record(12)",
5399
5655
  "value": Object {
5400
5656
  "$type": "app.bsky.feed.post",
@@ -5419,6 +5675,9 @@ Array [
5419
5675
  "val": "test-label-3",
5420
5676
  },
5421
5677
  ],
5678
+ "likeCount": 2,
5679
+ "replyCount": 0,
5680
+ "repostCount": 0,
5422
5681
  "uri": "record(11)",
5423
5682
  "value": Object {
5424
5683
  "$type": "app.bsky.feed.post",
@@ -61,7 +61,7 @@ describe.skip('pds actor search views', () => {
61
61
  'shane-torphy52.test', // Sadie Carter
62
62
  'aliya-hodkiewicz.test', // Carlton Abernathy IV
63
63
  'carlos6.test',
64
- 'carolina-mcdermott77.test',
64
+ 'carolina-mcderm77.test',
65
65
  ]
66
66
 
67
67
  shouldContain.forEach((handle) => expect(handles).toContain(handle))
@@ -150,7 +150,7 @@ describe.skip('pds actor search views', () => {
150
150
  'shane-torphy52.test', // Sadie Carter
151
151
  'aliya-hodkiewicz.test', // Carlton Abernathy IV
152
152
  'carlos6.test',
153
- 'carolina-mcdermott77.test',
153
+ 'carolina-mcderm77.test',
154
154
  ]
155
155
 
156
156
  shouldContain.forEach((handle) => expect(handles).toContain(handle))
@@ -246,7 +246,7 @@ describe.skip('pds actor search views', () => {
246
246
  )
247
247
  const handles = result.data.actors.map((u) => u.handle)
248
248
  expect(handles).toContain('carlos6.test')
249
- expect(handles).toContain('carolina-mcdermott77.test')
249
+ expect(handles).toContain('carolina-mcderm77.test')
250
250
  expect(handles).not.toContain('cara-wiegand69.test')
251
251
  })
252
252
  })
@@ -516,6 +516,7 @@ describe('pds views with blocking', () => {
516
516
  it('applies third-party blocking rules in feeds.', async () => {
517
517
  // alice follows carol and dan, block exists between carol and dan.
518
518
  const replyBlockedUri = carolReplyToDan.ref.uriStr
519
+ const replyBlockedParentUri = sc.posts[dan][0].ref.uriStr
519
520
  const embedBlockedUri = sc.posts[dan][1].ref.uriStr
520
521
  const { data: timeline } = await agent.api.app.bsky.feed.getTimeline(
521
522
  { limit: 100 },
@@ -524,8 +525,16 @@ describe('pds views with blocking', () => {
524
525
  const replyBlockedPost = timeline.feed.find(
525
526
  (item) => item.post.uri === replyBlockedUri,
526
527
  )
527
- assert(replyBlockedPost)
528
- expect(replyBlockedPost.reply?.parent).toBeUndefined()
528
+ expect(replyBlockedPost?.reply).toMatchObject({
529
+ root: {
530
+ $type: 'app.bsky.feed.defs#blockedPost',
531
+ uri: replyBlockedParentUri,
532
+ },
533
+ parent: {
534
+ $type: 'app.bsky.feed.defs#blockedPost',
535
+ uri: replyBlockedParentUri,
536
+ },
537
+ })
529
538
  const embedBlockedPost = timeline.feed.find(
530
539
  (item) => item.post.uri === embedBlockedUri,
531
540
  )