HenryHu / pybbs

Python implementation of the BBS server, providing BBS data interface
Other
28 stars 3 forks source link

Change needed for same topic navigation #6

Closed mrroach9 closed 12 years ago

mrroach9 commented 12 years ago

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.

HenryHu commented 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?

mrroach9 commented 12 years ago

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.