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: grab first email
Date Sun, 02 Apr 2017 12:29:06 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  ec71e2e   grab first email
ec71e2e is described below

commit ec71e2e5e25d3b6ba3b2293ebbecb7e80360a600
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sun Apr 2 08:28:54 2017 -0400

    grab first email
---
 www/secmail/server.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/secmail/server.rb b/www/secmail/server.rb
index 260b98d..f942c4e 100644
--- a/www/secmail/server.rb
+++ b/www/secmail/server.rb
@@ -175,7 +175,7 @@ end
 # return email for a given id
 get '/email.json' do
   _json do
-    {email: ASF::Person.find(params[:id]).mail}
+    {email: ASF::Person.find(params[:id]).mail.first}
   end
 end
 

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

Mime
View raw message