# Two webhook events sent for some new topics

**URL:** <https://meta.discourse.org/t/two-webhook-events-sent-for-some-new-topics/50951>\
**Category:** Bug\
**Created:** [1 أكتوبر 2016، 2:18م UTC](https://meta.discourse.org/t/two-webhook-events-sent-for-some-new-topics/50951 "2016-10-01T14:18:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)\
**Post date:** [1 أكتوبر 2016، 2:18م UTC](https://meta.discourse.org/t/two-webhook-events-sent-for-some-new-topics/50951/1 "2016-10-01T14:18:54Z")

</div>

I have a webhook configured to trigger for `topic_created` and `post_created` events. I’ve noticed that some new topics will trigger both, though. This is not true for all topics, but I have noticed it for topics containing uploaded images in their original posts.

In comparing their payloads, the only difference is that the `post_created` JSON contains a `post` array (for `post_number` 1).

[This topic](https://critcola.com/community/t/crit-cola-presents-roll-for-crit/263) from this morning, for example, triggered both events. Here’s the [`topic_created` payload](http://pastebin.com/MDJ1h3yw), and the [`post_created` payload](http://pastebin.com/1hJPrtGD).

---

_[View the full topic](https://meta.discourse.org/t/two-webhook-events-sent-for-some-new-topics/50951)._
