-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix orphaned feed slices, handle blocks #4944
Conversation
Your Render PR Server URL is https://social-app-pr-4944.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cqv842l2ng1s73dfu9o0. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this looks good, see nits above. i don't understand what rootIsView
is yet so it would be nice to confirm it works as intended (what's special about "post or blocked"?) before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lg!
Actually should have no effect on main for now, so should be clear to merge this ahead of app view changes |
* origin/main: (50 commits) Add `list hidden` screen (#4958) Expose more methods, support disabled items (#4954) Expose more props from button (#4953) Fix orphaned feed slices, handle blocks (#4944) Tweak `expo-modules-core` hack patch (#4955) [Experiment] Always show bottom bar (#4946) Revert "[Video] Download videos" (#4945) Move global "Sign out" out of the current account row (#4941) Hack patch for testing OTA update crash behavior (#4942) [Video] Download videos (#4886) swap control files (#4936) [Embed] Starter pack embed embed (#4935) [Video] set audio category to ambient every time a new player is made (#4934) Add `/live/` to supported YouTube embed URLs (#4932) [Video] Try/catch video play/pause (#4930) Don't kick to login screen on network error (#4911) Remove .withProxy() calls (#4929) [Video] Audio duck off main thread (#4926) subclass agent to add setPersistSessionHandler (#4928) [Video] Fix crash when switching tabs (#4925) ...
Relies on bluesky-social/atproto#2721
Fixes a regression in #4871 where
A -> B -> C
andA
blocksB
, we'd see the entireA -> B -> C
thread, whereas the intention was to filter out those "orphaned" threads. If we want to show orphaned threads, it's a one-line change infeed-tuners
.Testing
Test the scenarios below using the backend PR. Otherwise test prod, nothing should look different using prod data. Only the backend PR sends down data needed to compute the correct view.
Blocks
A
blocksB
, orB
blocksA
. Viewing asC
.See in prod, thread is orphaned (and technically "Reply to test.esb.lol" should say "Reply to blocked post")
In main, you can see through the 3p blocks:
In this PR,
C
only seesA
because the thread view would otherwise be "orphaned"C
blocksA
. Viewing asC
In all cases the entire feed slice is filtered out 👍
C
blocksB
. Viewing asC
.In all cases, only
A
is visible 👍Not found posts
In case of
B
deleting their post, again onlyA
is visible in feeds, and when viewingC
author feed, this PR now notes that the post was removed with the following:I chose "unknown post" instead of "deleted post" because there are multiple reasons a post might be "not found".