Forum Discussion

PerBonomi's avatar
9 years ago

Find last reply

Hi folks. Question: What's the cleanest way to use API 2 to get the last reply from a topic?

    • PerBonomi's avatar
      PerBonomi
      Boss

      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