X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/40e8482825187b61538ebedaf8431c7713f54138..6982903ae791702453bfa3f3a1cb9bfcf342fa2d:/app/views/api/users/_user.json.jbuilder?ds=sidebyside diff --git a/app/views/api/users/_user.json.jbuilder b/app/views/api/users/_user.json.jbuilder index 15f0685ac..1a339f628 100644 --- a/app/views/api/users/_user.json.jbuilder +++ b/app/views/api/users/_user.json.jbuilder @@ -46,7 +46,7 @@ json.user do end if current_user && current_user == user && can?(:details, User) - if user.home_lat && user.home_lon + if user.home_location? json.home do json.lat user.home_lat json.lon user.home_lon