Refactor friendships controller and model

This commit is contained in:
nertc 2025-01-14 11:33:56 +04:00
parent 2b7a48029b
commit be11f2075e
27 changed files with 317 additions and 338 deletions

View 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