]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/users/_user.xml.builder
Merge pull request #4106 from tomhughes/diary-paging
[rails.git] / app / views / api / users / _user.xml.builder
index 9092f2c96bacaaf1cb2233756716c41d36ecd0fc..1791c60ef96fb0cf78d876106ed07c2b836b7135 100644 (file)
@@ -1,6 +1,6 @@
 xml.tag! "user", :id => user.id,
                  :display_name => user.display_name,
-                 :account_created => user.creation_time.xmlschema do
+                 :account_created => user.created_at.xmlschema do
   xml.tag! "description", user.description if user.description
   if current_user && current_user == user && can?(:details, User)
     xml.tag! "contributor-terms", :agreed => user.terms_agreed.present?,
@@ -40,5 +40,6 @@ xml.tag! "user", :id => user.id,
                            :unread => user.new_messages.size
       xml.tag! "sent", :count => user.sent_messages.size
     end
+    xml.tag! "email", user.email if scope_enabled?(:read_email)
   end
 end