Nick Funk 7f98f13990 Send staff comments to Slack with all comments enabled (#3035)
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
2020-07-21 18:01:38 +00:00
2020-05-13 16:47:45 +00:00
2019-04-15 19:46:55 +02:00
2018-06-21 10:44:36 -06:00
2020-07-15 02:16:06 +00:00
2020-06-26 19:47:25 +00:00
2019-11-22 22:46:16 +00:00
2018-07-06 13:08:10 -06:00
2019-08-12 14:55:29 -04:00
2020-05-07 16:07:07 +00:00
2020-01-10 01:10:15 +00:00
2020-03-26 14:46:19 -04:00

Coral CircleCI

Online comments are broken. Our open-source commenting platform, Coral, rethinks how moderation, comment display, and conversation function, creating the opportunity for safer, smarter discussions around your work. Read more about Coral here.

Built with <3 by the Coral team, a part of Vox Media.

Preview Coral easily by running it via a Heroku App:

Deploy

Table of Contents

Documentation

You can get started with Coral using our Documentation.

Pre-Launch Guide

Youve installed Coral on your server, and youre preparing to launch it on your site. The real community work starts now, before you go live. You have a unique opportunity pre-launch to set your community up for success. Read our Community Guides to learn more.

More Resources

License

Coral is released under the Apache License, v2.0.

S
Description
A better commenting experience from Vox Media
Readme 39 MiB
Languages
TypeScript 82.5%
Fluent 9.2%
CSS 5%
FreeMarker 1.6%
JavaScript 0.9%
Other 0.7%