mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-09 19:50:18 +08:00
The script `send_chat_message` when used with the `post_created_edited` trigger now accepts `{{post_quote}}` as placeholder for the value of `message`.
This is made possible by a new method in `utils`. Usage:
```ruby
placeholders["foo"] = utils.build_quote(post)
```
|
||
|---|---|---|
| .. | ||
| discourse_automation | ||
| scriptable_spec.rb | ||
| triggerable_spec.rb | ||