You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/04/02 12:29:06 UTC

[whimsy] branch master updated: grab first email

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 <ru...@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" <co...@whimsical.apache.org>'].