X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/40e8482825187b61538ebedaf8431c7713f54138..27159ebf6de4e1f6109d9a6ea31b32d6a9728b9b:/app/views/api/users/_user.xml.builder?ds=inline diff --git a/app/views/api/users/_user.xml.builder b/app/views/api/users/_user.xml.builder index 1791c60ef..9fb74826a 100644 --- a/app/views/api/users/_user.xml.builder +++ b/app/views/api/users/_user.xml.builder @@ -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.home_location? xml.tag! "home", :lat => user.home_lat, :lon => user.home_lon, :zoom => user.home_zoom