# Detect if a topic has a new post

**URL:** https://meta.discourse.org/t/detect-if-a-topic-has-a-new-post/73880
**Category:** Support
**Tags:** webhooks
**Created:** [2017年十一月11日 05:39 UTC](https://meta.discourse.org/t/detect-if-a-topic-has-a-new-post/73880 "2017-11-11T05:39:06Z")
**Posts on this page:** 7
**Page:** 1

<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: [2017年十一月11日 05:39 UTC](https://meta.discourse.org/t/detect-if-a-topic-has-a-new-post/73880/1 "2017-11-11T05:39:06Z")

</div>

I needed to determine if it was possible to:

1. Detect when a new post is submitted via client side  
Reason: We do a lot of support here. We do not want “stale” cases to go unanswered or slip through the cracks.  
  
==\> If specific poster != x set topic timer on a specific topic based on this change and set it to a specific user

It a long shot and I have a feeling this functionality will require a full plugin however I wanted to determine if this was the case.

I guess I am more directly trying to find out if I can even detect a post submission and if I can update the timer via an api call to the topic. I can figure out the rest myself if I can confirm this is possible and where this is documented.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2017年十一月11日 06:07 UTC](https://meta.discourse.org/t/detect-if-a-topic-has-a-new-post/73880/2 "2017-11-11T06:07:22Z")

</div>

There are webhooks sent when a new topic or post is created. They could probably get you the information you need. See: [Configure webhooks that trigger on Discourse events to integrate with external services](https://meta.discourse.org/t/setting-up-webhooks/49045).

---

<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: [2017年十一月11日 06:46 UTC](https://meta.discourse.org/t/detect-if-a-topic-has-a-new-post/73880/3 "2017-11-11T06:46:55Z")

</div>

That is excellent. Just what was needed for the submission. Last thing is there a way to update the time on a topic? I can see in the app docs how to create a topic with a timer but can this timer be updated dynamically?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [2017年十一月11日 13:26 UTC](https://meta.discourse.org/t/detect-if-a-topic-has-a-new-post/73880/4 "2017-11-11T13:26:23Z")

</div>

There is also [update a topic timestamp](http://docs.discourse.org/#tag/Topics%2Fpaths%2F~1t~1%7Bid%7D~1change-timestamp%2Fput), which might be what you want.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2020年一月1日 07:21 UTC](https://meta.discourse.org/t/detect-if-a-topic-has-a-new-post/73880/5 "2020-01-01T07:21:09Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2023年十月26日 18:32 UTC](https://meta.discourse.org/t/detect-if-a-topic-has-a-new-post/73880/6 "2023-10-26T18:32:13Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2023年十月26日 18:43 UTC](https://meta.discourse.org/t/detect-if-a-topic-has-a-new-post/73880/7 "2023-10-26T18:43:50Z")

</div>


