bluesky-social / atproto

Social networking technology created by Bluesky
Other
7.2k stars 510 forks source link

Fix optimistic getPostThread for URIs with handle #2946

Closed gaearon closed 2 weeks ago

gaearon commented 3 weeks ago

Previously, getPostThread read-after-write handling was not taking at://<handle>/... URIs into account. This resulted in the PDS returning 404 for post thread query whenever relay is lagging, which resulted in a confusing UX in the app (the post would show up but clicking into it would show 404). This should fix that.

Test Plan

See two additions to tests. One of those worked before, the other one failed. Now both work.