X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f4d1d97848306e71b6525c58f2e5691b8aa686b7..a1798fe6fb238fd2e4b878cd1736ca2b3101daa7:/app/views/api/users/_user.xml.builder diff --git a/app/views/api/users/_user.xml.builder b/app/views/api/users/_user.xml.builder index 7d6b177f2..23ec1d34d 100644 --- a/app/views/api/users/_user.xml.builder +++ b/app/views/api/users/_user.xml.builder @@ -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?, @@ -25,7 +25,7 @@ xml.tag! "user", :id => user.id, end end if current_user && current_user == user && can?(:details, User) - if user.home_lat && user.home_lon + if user.has_home? xml.tag! "home", :lat => user.home_lat, :lon => user.home_lon, :zoom => user.home_zoom