mirror of
https://github.com/discourse/discourse.git
synced 2026-08-05 20:29:55 +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. |
||
|---|---|---|
| .. | ||
| credential_serializer.rb | ||
| data_table_serializer.rb | ||
| execution_list_serializer.rb | ||
| execution_serializer.rb | ||
| post_serializer.rb | ||
| topic_list_item_serializer.rb | ||
| topic_serializer.rb | ||
| user_serializer.rb | ||
| variable_serializer.rb | ||
| workflow_serializer.rb | ||
| workflow_tag_serializer.rb | ||
| workflow_version_serializer.rb | ||