Merge pull request #2801 from consul/proposal_authors_notifications
Prevent authors from receiving their own proposals notification emails
This commit is contained in:
@@ -205,7 +205,7 @@ class Proposal < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def users_to_notify
|
||||
(voters + followers).uniq
|
||||
(voters + followers).uniq - [author]
|
||||
end
|
||||
|
||||
def self.proposals_orders(user)
|
||||
|
||||
@@ -35,8 +35,6 @@
|
||||
<%= activity.actionable.body %>
|
||||
<% when "Newsletter" %>
|
||||
<strong><%= activity.actionable.subject %></strong>
|
||||
<br>
|
||||
<%= activity.actionable.body %>
|
||||
<% when "ProposalNotification" %>
|
||||
<strong><%= activity.actionable.title %></strong>
|
||||
<br>
|
||||
|
||||
Reference in New Issue
Block a user