mirror of
https://github.com/wassname/talk.git
synced 2026-07-09 17:32:08 +08:00
7f98f139901d6eeb9caf3159ed0dc5230fb13e93
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
Coral 
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:
Table of Contents
Documentation
You can get started with Coral using our Documentation.
Pre-Launch Guide
You’ve installed Coral on your server, and you’re 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.
Description
Languages
TypeScript
82.5%
Fluent
9.2%
CSS
5%
FreeMarker
1.6%
JavaScript
0.9%
Other
0.7%