]> cat aescling's git repositories - mastodon.git/commit
Replace incorrect use of distinct with group (#14675)
authorAkihiko Odaki <nekomanma@pixiv.co.jp>
Fri, 28 Aug 2020 10:29:59 +0000 (19:29 +0900)
committerGitHub <noreply@github.com>
Fri, 28 Aug 2020 10:29:59 +0000 (12:29 +0200)
commite26e7a1cb5992375eecedbc10ab9bcef4e603a88
treea74ed55b41413c0d20757a76baa4fb20fa9d565d
parent552e886b648faa2a2229d86c7fd9abc8bb5ff99c
Replace incorrect use of distinct with group (#14675)

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.
app/controllers/api/v1/accounts/statuses_controller.rb
app/controllers/api/v1/timelines/public_controller.rb