app/commands/decidim/proposals/create_proposal.rb in decidim-proposals-0.9.3 vs app/commands/decidim/proposals/create_proposal.rb in decidim-proposals-0.10.0

- old
+ new

@@ -33,27 +33,15 @@ end transaction do create_proposal create_attachment if process_attachments? - send_notification end broadcast(:ok, proposal) end private - - def send_notification - return if proposal.author.blank? - - Decidim::EventsManager.publish( - event: "decidim.events.proposals.proposal_created", - event_class: Decidim::Proposals::CreateProposalEvent, - resource: proposal, - recipient_ids: proposal.author.followers.pluck(:id) - ) - end attr_reader :form, :proposal, :attachment def create_proposal @proposal = Proposal.create!(