How to tell if a post is a reply or a topic?


(Salman, Freelance Developer) #1

Is it possible to ONLY look at the post table and be able to tell if a particular row is a topic or a reply?

I thought reply_to_post_number would tell me this but doesn’t look like it.


(Sam Saffron) #2

not following … post_number 1 is always going to be the first post … anything larger than one is a “reply” to a topic. unless its a “direct reply” to a post in which ‘reply_to_post_number’ will be set.


(Salman, Freelance Developer) #3

It is late and I somehow missed that :slight_smile:


(Robin Ward) #4