mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 07:23:30 +08:00
Previously, the topic payloads emitted by workflow triggers and nodes did not include the topic owner, so a condition like "was this post written by the topic owner?" required an extra `action:topic` lookup just to fetch `user_id`. This change adds `user_id` to the topic payload of every trigger and node — via a plugin-level `TopicListItemSerializer` — so expressions can compare `$json.topic.user_id` to `$json.post.user_id` directly, and consolidates the duplicated per-node `topic_data` helpers into a single `NodeType` helper. |
||
|---|---|---|
| .. | ||
| admin/assets/javascripts | ||
| app | ||
| assets | ||
| config | ||
| db | ||
| lib | ||
| public/images/upcoming_changes | ||
| spec | ||
| test/javascripts | ||
| plugin.rb | ||
| USE_CASES.md | ||