appdotnet / api-spec

App.net API Documentation is on the web at https://developers.app.net. Source for these docs is in the new-docs branch here. Please use the issue tracker and submit pull requests! Help us build the real-time social service where users and developers come first, not advertisers.
https://developers.app.net
950 stars 98 forks source link

Reverse sort order #288

Open duerig opened 11 years ago

duerig commented 11 years ago

All sort order is currently most to least recent. This means it is easy to get the messages just before a particular id in a channel. But this doesn't scale to long threads or channels. Ideally, when displaying a message in a channel I'll show just a bit of context before and a bit of context after it. Then wait to load any more messages until the user requests them.

But this can't be done without a sort order option. I can get some context before the id, but I must fetch all messages after the id in order to get the context after a message was posted.