X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/53aa7259bb0612eb48a17d0b954ad71ea37d87a4..a1798fe6fb238fd2e4b878cd1736ca2b3101daa7:/app/views/api/users/_user.xml.builder?ds=sidebyside diff --git a/app/views/api/users/_user.xml.builder b/app/views/api/users/_user.xml.builder index 1791c60ef..23ec1d34d 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.has_home? xml.tag! "home", :lat => user.home_lat, :lon => user.home_lon, :zoom => user.home_zoom