Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook for approved comments #202

Closed
OliveiraCleidson opened this issue Apr 10, 2023 · 3 comments
Closed

Webhook for approved comments #202

OliveiraCleidson opened this issue Apr 10, 2023 · 3 comments
Assignees
Labels
backlog feature request Community feature request solved Issue has been solved v4 Strapi v4

Comments

@OliveiraCleidson
Copy link

Description

It's a feature request, as far as I know, this feature not exists.

Can be interesting the feature that emits events via webhooks to the lifecycle of comments, like approved comments, created comments, and more.

What is my use case? I have systems that use Strapi as an admin panel, when one user has not registered in Strapi and comments in one content type, the moderator should approve these comments. When one comment is approved I want to run a policy in this comment, like sending e-mail, seeding another system, update a ranking.

Another use case is when a comment is created I want to send a notification to some systems without creating a stream connection between databases.

@cyp3rius cyp3rius self-assigned this Apr 12, 2023
@cyp3rius cyp3rius added feature request Community feature request backlog v4 Strapi v4 labels Apr 12, 2023
@cyp3rius
Copy link
Collaborator

Hello @OliveiraCleidson,

Sounds like a useful thing. We'll consider that.

@cyp3rius cyp3rius assigned CodeVoyager and unassigned cyp3rius Feb 23, 2024
@CodeVoyager CodeVoyager added the investigation Issue under investigation label Feb 24, 2024
@CodeVoyager CodeVoyager added in progress and removed investigation Issue under investigation labels Mar 2, 2024
@CodeVoyager
Copy link
Contributor

Hi @OliveiraCleidson,

I did some research about custom webhooks. It is possible to register new webhook event name. And probably trigger it. But for admin panel panel integration or visibility of said event names, results were not optimistic. Admin panel is pretty much hardcoded so registering of webhooks had to be done in comments section settings. For now we voted against it.

Next best thing we figured out were to connect entities of comments section to Strapi's content types lifecycle hooks. Connected PR addresses lifecycle approach. Don't worry, README.md was also updated.

@cyp3rius
Copy link
Collaborator

Release v2.3.0 contain this feature.

@cyp3rius cyp3rius added solved Issue has been solved and removed in progress labels May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog feature request Community feature request solved Issue has been solved v4 Strapi v4
Projects
None yet
Development

No branches or pull requests

3 participants