FEATURE: Add user to topic_tags_changed event (#28714)

* FEATURE: Add user to topic_tags_changed event

Add user to topic_tags_changed event context
Update automation plugin with new arguments in event
Update tests for new arguments

relates to https://github.com/discourse/discourse-chat-integration/pull/214

* DEV: change variable name for better readability

changed `tags` to be payload and used `values_at` to get the values of the keys
This commit is contained in:
Gabriel Grubba
2024-09-06 11:23:30 -03:00
committed by GitHub
parent 5f5680dbaf
commit a98d3d40f2
5 changed files with 14 additions and 7 deletions

View File

@@ -212,6 +212,7 @@ module DiscourseTagging
topic,
old_tag_names: old_tag_names,
new_tag_names: topic.tags.map(&:name),
user: guardian.user,
)
true