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

Send email to the author when a content is hidden #22

Open
2 tasks done
microstudi opened this issue Sep 9, 2022 · 0 comments · Fixed by #30 · May be fixed by #29
Open
2 tasks done

Send email to the author when a content is hidden #22

microstudi opened this issue Sep 9, 2022 · 0 comments · Fixed by #30 · May be fixed by #29

Comments

@microstudi
Copy link

microstudi commented Sep 9, 2022

Original requirement:

As a user, I would like to receive a notification if my proposal is hidden.

Context

Currently, when a content is moderated, the admin can decide to hide the proposal or, if the number of reports exceeds the configuration Decidim.max_reports_before_hiding.
This is done by the Decidim::Admin::HideResource command. Which results on hiding the proposals and creating a notification on the user who created the proposal, but it does not send and email.

User notification:
image

Admin hide/moderation:
image
image

Tasks

  • Add a mailer job sending the authors of a moderated resource a notice that their proposal has been hidden.
  • Add tests

Possible email content:

An administrator removed your proposal because it has been reported as spam:

%{resource_title}

If you feel that has been a mistake please contact the administrators of %{organization} (with link to the decidim url)
  • branch from release/0.26-stable, PR to this repository, same branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants