DEV: Add topic_published event (#31239)

While it is possible derive a topic published event from category id
changes in a `post_edited` or `before_post_publish_changes` event, there
are use cases when a dedicated event is more apposite.
This commit is contained in:
Angus McLeod
2025-02-10 20:58:58 +01:00
committed by GitHub
parent 1d8cdfd5e0
commit 088ac0331e

View File

@ -41,6 +41,8 @@ class TopicPublisher
op.update_columns(version: 1, public_version: 1, last_version_at: published_at)
end
DiscourseEvent.trigger(:topic_published, @topic, published_at)
end
Jobs.enqueue(