[openstreetmap/openstreetmap-website] Modify the way "Friends" are added (PR #5261)

Anton Khorev notifications at github.com
Sun Jan 12 11:56:18 UTC 2025


@AntonKhorev commented on this pull request.



> +  has_many :follows, -> { joins(:following).where(:users => { :status => %w[active confirmed] }) }
+  has_many :followings, :through => :follows, :source => :following

OK, let's keep `followings`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5261#discussion_r1912433803
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5261/review/2545414721 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250112/28449d3f/attachment.htm>


More information about the rails-dev mailing list