# 关联主题（拆分和管理大型主题）

**URL:** <https://meta.discourse.org/t/linked-topics-splitting-and-managing-megatopics/168992>\
**Category:** Announcements\
**Tags:** new-feature\
**Created:** [2020年十一月2日 13:44 UTC](https://meta.discourse.org/t/linked-topics-splitting-and-managing-megatopics/168992 "2020-11-02T13:44:13Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![jimkleiber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimkleiber/32/121814_2.png) [@jimkleiber](https://meta.discourse.org/u/jimkleiber)\
**Post date:** [2022年五月16日 16:58 UTC](https://meta.discourse.org/t/linked-topics-splitting-and-managing-megatopics/168992/18 "2022-05-16T16:58:34Z")

</div>

> [@techAPJ](#):
>
> 我刚刚[合并了一个功能](https://github.com/discourse/discourse/commit/1476e17c354bc30e23485d921bdb9a9feb35adca)，该功能会在某个主题根据 `auto close topics post count` 站点设置自动关闭时，创建一个新的关联主题。

我正在使用 WP 和 Discourse 进行音频教育和小组反思，并想知道，如果 WP 插件在 Discourse 中创建一个新主题时，是否会触发一个事件来为该主主题创建关联的反思主题，这会有多大帮助。这样一来，我就可以将原始主题设为只读，以免人们在收听音频之前看到反思内容，并将关联主题作为他们进行反思的地方。

类似于：

> [@pfaffman](#):
>
> 我将作业（或[任务](https://forum.literatecomputing.com/c/quests)）组织在只读类别中，并指示学生回复即创建关联主题（现在是帖子下方的链接图标），然后将他们的帖子放入他们班级的类别中，并为该作业添加特定标签。

我是否可以认为，只需稍微调整这里的代码，就可以在新插件中实现这一点？

```ruby
      if SiteSetting.auto_close_topics_create_linked_topic?
        # enqueue a job to create a linked topic
        Jobs.enqueue_in(5.seconds, :create_linked_topic, post_id: @post.id)
      end

```

此外，我想知道是否有足够多的自动创建关联主题的应用场景，使其成为 [Discourse Automation](https://meta.discourse.org/t/discourse-automation/195773) 的一部分？

---

_[View the full topic](https://meta.discourse.org/t/linked-topics-splitting-and-managing-megatopics/168992)._
