# Webhooks don't function properly when moderator approval is enabled

**URL:** <https://meta.discourse.org/t/webhooks-dont-function-properly-when-moderator-approval-is-enabled/76635>\
**Category:** Bug\
**Created:** [December 22, 2017, 5:41pm UTC](https://meta.discourse.org/t/webhooks-dont-function-properly-when-moderator-approval-is-enabled/76635 "2017-12-22T17:41:42Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![jordan1909](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jordan1909](https://meta.discourse.org/u/jordan1909)\
**Post date:** [January 2, 2018, 4:20pm UTC](https://meta.discourse.org/t/webhooks-dont-function-properly-when-moderator-approval-is-enabled/76635/9 "2018-01-02T16:20:00Z")

</div>

> [@codinghorror](#):
>
> What version of Discourse are you on? View source to see.

I am on **v1.9.0.beta17 +80**

  

> [@simon](#):
>
> What happens when a TL 3 user creates or edits a post? If you reset the moderator approval settings to their defaults, does the problem go away?

If a user of TL 3 or higher creates or edits a post a webhook is triggered immediately. If I reset moderator approval it does in fact go away. So it seems to be directly tied into topics that require approval.

#### Tests:
Tests were done with a moderation required level of 2 or less.   
  
  

| Test | Moderation Required | Successful |
| --- | --- | --- |
| Create topic with TL \> 3 | No | Yes. Webhook successfully triggered. |
| Create Topic with TL \< 3 | Yes | Sporadically. This was strange but out of 10 runs  
3 successfully triggered a webhook but the rest did not. |
| Reply to Topic with TL \>= 3 | No | Yes. Webhook successfully triggered. |
| **Reply to Topic with TL \< 3** | **Yes** | **No. No webhook is triggered.** |
| Private Message (any TL) | No | Yes. Webhook successfully triggered. |
| Topic deleted | No | Yes. Webhook successfully triggered. |
| Topic edited TL \>= 3 | No | Yes. Webhook successfully triggered. |
| Topic edited TL \<= 3 | No | Yes. Webhook successfully triggered. |

  

#### Videos:

1. Creating a topic with TL of 3 or higher.

[https://global.discourse-cdn.com/meta/original/3X/d/b/dbcadafda0a876c65c9d1cac5b3d9fb0769bebcf.mp4](https://global.discourse-cdn.com/meta/original/3X/d/b/dbcadafda0a876c65c9d1cac5b3d9fb0769bebcf.mp4)

2. Creating a topic with TL of 2 or less.

[https://global.discourse-cdn.com/meta/original/3X/1/c/1c96ff78a71cb29220efb81862a8fa5406e20310.mp4](https://global.discourse-cdn.com/meta/original/3X/1/c/1c96ff78a71cb29220efb81862a8fa5406e20310.mp4)

1. Replying with a topic of TL of 3 or higher

[https://global.discourse-cdn.com/meta/original/3X/b/6/b6e1fb699f82e51b1306b7d353f45023ff218683.mp4](https://global.discourse-cdn.com/meta/original/3X/b/6/b6e1fb699f82e51b1306b7d353f45023ff218683.mp4)

1. Replying with a topic of TL of 2 or less

[https://global.discourse-cdn.com/meta/original/3X/f/7/f75ba1c64948c8d47f920bcfca212cc3110eb50b.mp4](https://global.discourse-cdn.com/meta/original/3X/f/7/f75ba1c64948c8d47f920bcfca212cc3110eb50b.mp4)

**EDIT: Not sure why my videos are being wonky but they work when you paste them directly.**

---

_[View the full topic](https://meta.discourse.org/t/webhooks-dont-function-properly-when-moderator-approval-is-enabled/76635)._
