Sort:  

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.

thank you!

I usually just check for comment's parent_author, if it's empty, I presume I'm looking at a top level post

Coin Marketplace

STEEM 0.17
TRX 0.15
JST 0.028
BTC 60569.12
ETH 2442.20
USDT 1.00
SBD 2.52