Commit 76048de
committed
[Bug Fix] Validate reply references via the AppView for cross-PDS replies
`isValidReplyReference` resolved the root and parent records through the
posting user's PDS (`session.pdsURL`). `com.atproto.repo.getRecord` served by
a single PDS only returns records for the repositories that PDS hosts, so any
reply whose root or parent is authored on a different PDS failed validation.
`createPostRecord` then threw `invalidReplyReference`, blocking otherwise-valid
replies to users on third-party PDSes.
Resolve both records through Bluesky's AppView (`APIHostname.bskyAppView`),
which resolves records across PDSes. Also removes a duplicated-scheme typo in
the root fallback URL (`https://https://`).1 parent 72b977e commit 76048de
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
54 | | - | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| |||
70 | 77 | | |
71 | 78 | | |
72 | 79 | | |
73 | | - | |
| 80 | + | |
74 | 81 | | |
75 | 82 | | |
76 | 83 | | |
| |||
0 commit comments