# Как отправить ID только что созданной темы?

**URL:** https://meta.discourse.org/t/how-do-i-send-a-topic-id-just-created/160606
**Category:** Development
**Created:** [12.Август.2020 09:33:42 UTC](https://meta.discourse.org/t/how-do-i-send-a-topic-id-just-created/160606 "2020-08-12T09:33:42Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [13.Август.2020 07:54:26 UTC](https://meta.discourse.org/t/how-do-i-send-a-topic-id-just-created/160606/5 "2020-08-13T07:54:26Z")

</div>

Как насчет использования системы событий?

Например

> [@Post created is fired when topic created](https://meta.discourse.org/t/post-created-is-fired-when-topic-created/84725?u=merefield):
>
> Working with the internal event hooks and I noticed, when the topic\_created event triggers so does post\_created. For the initial topic post, wouldn’t the assumption be that a post was created as well? Is there a reason why they both would fire at the same time? It seems redundant to have both fire at the same time, especially because you cannot create a topic without an inital post. Ex: DiscourseEvent.on(:topic\_created) do |topic| puts "New Topic" end DiscourseEvent.on(:post\_created) do …

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-send-a-topic-id-just-created/160606)._
