openpoke/decidim-module-reporting-proposals

Notify author of a proposal on publish

Closed this issue · 0 comments

Original requirement:

  • When as a user I send my (reporting) proposal, I want to get an e-mail confirmation of this action including the link to the proposal.

Implementation

  • Add a configuration option:
config_accessor :notify_authors_on_publish do
  [:proposals, :reporting_proposals]
end
  • Respecting the configuration, send the (Co)Author(s) of a proposal an email when the proposal is published. It must include the link to the published proposals in the body.