mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-18 16:11:42 +01:00
e26e7a1cb5
Some uses of ActiveRecord::QueryMethods#distinct pass field names but they are incorrect for the current version of Rails. ActiveRecord::QueryMethods#group provides the expected behavior and benefits performance. See commit 6da24aad4cafdef8d8a2c92bac2002a5fc2fe9c8.