]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changesets_controller.rb
Merge pull request #5437 from AntonKhorev/user-status-resource
[rails.git] / app / controllers / changesets_controller.rb
index 928f1c1ecf25724fa33fc9933eed9d49ded35bc4..aa9d81343a1c61764bb8637d3b4d7e7a6421a080 100644 (file)
@@ -55,7 +55,7 @@ class ChangesetsController < ApplicationController
       elsif @params[:bbox]
         changesets = conditions_bbox(changesets, BoundingBox.from_bbox_params(params))
       elsif @params[:friends] && current_user
-        changesets = changesets.where(:user => current_user.friends.identifiable)
+        changesets = changesets.where(:user => current_user.followings.identifiable)
       elsif @params[:nearby] && current_user
         changesets = changesets.where(:user => current_user.nearby)
       end