The correct way to is the compare the comment's id
to its root_comment
- if those numbers are the same, the current transaction in the block is a post; however, this requires getting the post content, which isn't so handy. @furion's method works without that.
You are viewing a single comment's thread from:
thank you!