DEV: adds topic_url/topic_title placeholders (#28754)

`topic_tags_changed` trigger now fills the {{topic_url}} and {{topic_title}} placeholders. `topic_url` is the relative URL.
This commit is contained in:
Joffrey JAFFEUX
2024-09-05 11:18:26 +02:00
committed by GitHub
parent dc1afeac89
commit 1a96269be0
3 changed files with 20 additions and 0 deletions

View File

@ -3,4 +3,7 @@
DiscourseAutomation::Triggerable.add(DiscourseAutomation::Triggers::TOPIC_TAGS_CHANGED) do
field :watching_categories, component: :categories
field :watching_tags, component: :tags
placeholder :topic_url
placeholder :topic_title
end