whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Also return family_name (sn)
Date Sat, 28 Jul 2018 17:03:25 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb 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 4d7b957  Also return family_name (sn)
4d7b957 is described below

commit 4d7b957d5657455262364ec037be7d002a839689
Author: Sebb <sebb@apache.org>
AuthorDate: Sat Jul 28 18:03:23 2018 +0100

    Also return family_name (sn)
---
 www/roster/models/committer.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/roster/models/committer.rb b/www/roster/models/committer.rb
index 4f43803..035a66e 100644
--- a/www/roster/models/committer.rb
+++ b/www/roster/models/committer.rb
@@ -38,6 +38,10 @@ class Committer
       name[:given_name] = person.attrs['givenName'].first.force_encoding('utf-8')
     end
 
+    unless person.attrs['sn'].empty?
+      name[:family_name] = person.attrs['sn'].first.force_encoding('utf-8')
+    end
+
     response[:name] = name
 
     response[:mail] = person.all_mail


Mime
View raw message