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

Provide thread endpoint for messages #250

Open simonwelsh opened 11 years ago

simonwelsh commented 11 years ago

Messages have reply_to and thread_id, so being able to get all the messages in a thread, similar to the way we can with posts, would be rather useful. Perhaps at https://alpha-api.app.net/stream/0/channels/[channel_id]/messages/[message_id]/thread

berg commented 11 years ago

We don't currently have a per-thread index of messages, so your best bet is to recreate the thread by pulling down all of the messages in a channel. This is one of the things we purposefully omitted to keep channels lightweight.

duerig commented 11 years ago

If the intent is for channels to be lightweight, then I suppose that the solution to this is to use one channel per user-thread. In some ways this is more flexible since you can have a per-thread ACL and the owner can close a single thread by revoking write permissions. Hmm.