]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/users/_user.xml.builder
Merge pull request #5362 from AntonKhorev/color-mode-preference-map
[rails.git] / app / views / api / users / _user.xml.builder
index 1791c60ef96fb0cf78d876106ed07c2b836b7135..9fb74826a017b87170ca3f0f0ac771bb433e0d97 100644 (file)
@@ -25,7 +25,7 @@ xml.tag! "user", :id => user.id,
     end
   end
   if current_user && current_user == user && can?(:details, User)
     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
       xml.tag! "home", :lat => user.home_lat,
                        :lon => user.home_lon,
                        :zoom => user.home_zoom