Some main posts may start with "Re: " in their title. steemtools has a more accurate helper for detecting if a post is comment or not.
You are viewing a single comment's thread from:
Some main posts may start with "Re: " in their title. steemtools has a more accurate helper for detecting if a post is comment or not.
will you tell me or let me discover it myself? :)
The correct way to is the compare the comment's
id
to itsroot_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