Skip to content
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

Adding fetching of statuses in lexicographycal order (by status ID) #13817

Open
cage2 opened this issue May 20, 2020 · 5 comments
Open

Adding fetching of statuses in lexicographycal order (by status ID) #13817

cage2 opened this issue May 20, 2020 · 5 comments

Comments

@cage2
Copy link

cage2 commented May 20, 2020

Hi!

Seems to me (correct me if i am wrong) that the timeline rest API just fetches the roots of a tree of statuses (a tree where each not root node is a reply of a parent status). But i think would be just great to be able to fetch the statuses in plain lexicographical order using ID. The API could just use the same parameters of the timeline API (min-id, max-id etc.). This could be very useful the get the non-root status when the root is not available (for example if the user of the client deleted it from their local database of statuses).

Bye!
C.

@ClearlyClaire
Copy link
Contributor

“Seems to me […] that the timeline rest API […]. The API could just use the same parameters of the timeline API […]”

I'm not sure which API you suggest changing?

Also, threads are internally just chains of replies, if one toot is deleted, the chain is broken and cannot really be recovered (this is not entirely true, toots also have a conversation id, but that can change anytime at any participant's will, even if they logically belong to the same thread)

@cage2
Copy link
Author

cage2 commented May 21, 2020 via email

@ClearlyClaire
Copy link
Contributor

Ah, public timelines only include toots which aren't replies and toots that are self-replies, it does not include any other kind of replies. The home timeline includes only toots that aren't replies, or that are replies to someone you follow, it's not a “root toot” thing. Also, toots which are in the Home TL but for which the parent toot gets deleted remain in the Home TL.

@cage2
Copy link
Author

cage2 commented May 21, 2020

Hi ThibG!

Ah, public timelines only include toots which aren't replies and
toots that are self-replies, it does not include any other kind of
replies. The home timeline includes only toots that aren't replies,
or that are replies to someone you follow, it's not a “root toot”
thing. Also, toots which are in the Home TL but for which the parent
toot gets deleted remain in the Home TL.

So it is actually much more complicated than my initial guess! :D

Unfortunately for the client i am writing (in case you are curious:
http://notabug.org/cage/tinmop) this is still not enough :( So i think
my humble proposal still apply (and i also believe could be useful for
other people not just me, i am not so selfish! ;-)):

To summarize, a GET endpoint to fetch all the the public messages and
one to fetch the whole home timeline (toots from people you follow and
all the replies) ordered by id and with the same parameters and
semantics of the timeline endpoints.

Thank you very much for your attention! :)
Bye!
C.

@cage2
Copy link
Author

cage2 commented May 22, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants