#NestedThreads : desired behavior
@NicoleCRust I'm gonna make a better threaded interface for our instance after I finish moving :)
#NestedThreads
@jdp23 @liamsora @kichae @futurebird @stopthatgirl7
it certainly doesn't address the problem fully, but I'll be merging this into neuromatch.social to test soon enough: https://github.com/NeuromatchAcademy/mastodon/pull/8
It's relatively simple patch that's entirely frontend so hopefully easy to deploy on smaller instances.
Makes a button that lets you request the replies to a given post so you can see them even if no one on your instance follows the poster (ie. your instance wouldn't know about the post because of the pub/sub issues described above).
It works by using the search feature to fetch posts (as @liamsora also discovered):
It currently inserts them in a disordered way because the React component holding a thread is a single-layer component that holds expanded post & ancestors & replies. that's also related to why a thread is completely unreadable (imo) because it's rendered as a flat list rather than as a tree - which is what a thread is. Will be working on making a properly recursive component next.
Once that's done, then it should be possible to iteratively request replies in a smarter way, but that will also require another change in the way the /context endpoint works, which currently takes no arguments for subsetting and has no pagination - so therefore has relatively low hardcoded limits on the amount of replies you can request without being logged in. That will need to change to be able to request a certain depth (currently it gets the entire reply tree and then flattens it into an array) and paginate through results so that eg. you can get all the top-level replies to the request you have open, and then as you open deeper replies you get the replies to that reply, and so on....
(sorry for wall of text sort of got away from me.)
#fetchallreplies #nestedthreads #contextapi #mastodev
OK i'm waiting for a phone call and have a few minutes so let me puzzle about what it would take to make a #NestedThreads interface for #GlitchSoc rather than a flat list of replies until they call me...
#nestedthreads #glitchsoc #mastodev #mastoux