Closed mrroach9 closed 12 years ago
But I think that I need a method to inform the clients that we have reached the tail/head of the thread. Can't you just capture the 404 error and process it?
Yes you're right. However for the "go to head" function, this might be confusing. Actually another problem is when the head has been deleted, the query will give the first post.
Currently the way to visit the head post of a thread is to set direction=backward last_one=1 in post/nextid query interface. However, this query will report a 404 error when the current post is already the head of a thread. This feature does fits its description, but inconvenient for front-end developers to implement "go to head" function. It would be better if you still return the id of the head under such circumstance.