whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: redirect fundraising membership change notifications to fundraising@
Date Mon, 27 Mar 2017 01:31:02 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  cc81800   redirect fundraising membership change notifications to fundraising@
cc81800 is described below

commit cc81800a145d7ca00dcde6334cde770e9a7281ec
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sun Mar 26 21:30:41 2017 -0400

    redirect fundraising membership change notifications to fundraising@
---
 www/roster/views/actions/authgroup.json.rb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/www/roster/views/actions/authgroup.json.rb b/www/roster/views/actions/authgroup.json.rb
index 558796e..b86356a 100644
--- a/www/roster/views/actions/authgroup.json.rb
+++ b/www/roster/views/actions/authgroup.json.rb
@@ -27,7 +27,9 @@ if env.password
   to = group.members
   to << person unless to.include? person
   to.delete from unless to.length == 1
-  to = to.map {|person| "#{person.public_name} <#{person.id}@apache.org>"}
+  to = to.map do |person| 
+    "#{person.public_name} <#{person.id}@apache.org>".untaint
+  end
 
   # replace with sending to the private@pmc list if this is a pmc owned group
   pmc = ASF::Committee.find(group.id.split('-').first)
@@ -36,6 +38,9 @@ if env.password
     to = "private@#{to}.apache.org" unless to.include? '@'
   end
 
+  # other committees
+  to = 'fundraising@apache.org' if group.id == 'fundraising'
+
   # construct email
   mail = Mail.new do
     from "#{from.public_name} <#{from.id}@apache.org>".untaint

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message