Webhook event `post_type`

@Lucas_Alves … must be so frustrating to just get no instructions, but also to completely miss any doc about it. Like, at least, for me it is frustrating.

Now, since I found your post here which was exactly what I was looking for, let me share how I detect if it is a “comment” (strictly speaking a POST that is a FOLLOW UP of any kind to the TOPIC)

  1. the post_type is 1
  2. the post_number is greater than 1
  3. the version is 1

If you want to specifically get only replies to a specific other coment you could use reply_to_post_number (if not empty, that is the post number of the post being replied to)

I hope this helps, and I wish, Discourse would call this object property comment, not post, just like they call like for Like actions!