mirror of
https://github.com/wassname/talk.git
synced 2026-07-11 13:32:09 +08:00
7f98f13990
When we set up a Slack channel, you can select to have "All comments" sent to the slack channel. If we do this we want staff comments to come through as well. This wasn't happening before because there is a `staffCreated` flag instead of `created` when a staff member comments. So we change the trigger return type to an array, and when a staff comment appears, return `staffCreated` as well as `created` so the all filter lets it through. I also changed `getBlocks(...)` to `getContent(...)` as it now returns a JSON object with both a `blocks` array and a `text` string field. This fixes the problem where Slack would notifications would say "this content cannot be displayed". Now it will say the text provided. CORL-1172