PerBonomi
10 years agoBoss
Find last reply
Hi folks. Question: What's the cleanest way to use API 2 to get the last reply from a topic?
Sign in to react to this post
Hi folks. Question: What's the cleanest way to use API 2 to get the last reply from a topic?
Right. Guess I can query the replies with limit 1 and order desc by post time.
Thanks.
Edit:
Running into an "old" problem again. I want the last message in the conversation, but if the last post is a reply to a reply, and not a reply to the original post, it's not found when using select * from messages where parent.id = '<id>'.
And there doesn't seem to be a way to find all messages in a conversation with V2.
Drives me nuts..oO