You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app/controllers
Akihiko Odaki 41eeb9ebaa
Use Status.group instead of Status.distinct in HashQueryService (#14662)
DISTINCT clause removes duplicated records according to all the selected
attributes. In reality, it can remove duplicated records only looking at
statuses.id, but the clause confuses the query planner and yields
insufficient performance.
The behavior is also problematic if the scope produced by HashQueryService
is used to query columns without id (using pluck method, for example). The
scope is expected to contain unique statuses, but the uniquness will be
evaluated with some arbitrary columns other than id.

GROUP BY clause resolves those problem by explicitly specifying the
column to take into account for the record distinction.

A workaround for the problem of DISTINCT clause in
Api::V1::Timelines::TagController is no longer necessary and removed.
5 years ago
..
activitypub Add E2EE API (#13820) 5 years ago
admin Improve email address validation (#14565) 5 years ago
api Use Status.group instead of Status.distinct in HashQueryService (#14662) 5 years ago
auth Add WebAuthn as an alternative 2FA method (#14466) 5 years ago
concerns Add support for latest HTTP Signatures spec draft (#14556) 5 years ago
oauth Fix settings pages being cacheable by the browser (#12714) 5 years ago
settings Add WebAuthn as an alternative 2FA method (#14466) 5 years ago
well_known Fix webfinger returning wrong status code on malformed or missing param (#13759) 5 years ago
about_controller.rb Add table of contents to about page (#11885) 6 years ago
account_follow_controller.rb Add specific rate limits for posting and following (#13172) 5 years ago
account_unfollow_controller.rb Restful refactor of accounts/ routes (#2133) 8 years ago
accounts_controller.rb Fix functional user requirements in whitelist mode (#14093) 5 years ago
application_controller.rb Fix RSS feeds not being cachable (#14368) 5 years ago
authorize_interactions_controller.rb Add specific rate limits for posting and following (#13172) 5 years ago
custom_css_controller.rb Fix redirecting non-functional accounts on public pages (#11978) 6 years ago
directories_controller.rb Fix functional user requirements in whitelist mode (#14093) 5 years ago
emojis_controller.rb Add (back) rails-level JSON caching (#11333) 6 years ago
filters_controller.rb Fix missing authentication call in filters controller (#12746) 5 years ago
follower_accounts_controller.rb Fix functional user requirements in whitelist mode (#14093) 5 years ago
following_accounts_controller.rb Fix functional user requirements in whitelist mode (#14093) 5 years ago
home_controller.rb Fix other sessions not being logged out on password change (#14252) 5 years ago
instance_actors_controller.rb Fix reverse-proxy caching of instance actor object (#11561) 6 years ago
intents_controller.rb Refactor controllers for statuses, accounts, and more (#11249) 6 years ago
invites_controller.rb Add invite comments (#10465) 6 years ago
manifests_controller.rb Fix redirecting non-functional accounts on public pages (#11978) 6 years ago
media_controller.rb Fix functional user requirements in whitelist mode (#14093) 5 years ago
media_proxy_controller.rb Fix media attachments enumeration (#14254) 5 years ago
public_timelines_controller.rb Fix blurhash and autoplay not working on public pages (#11585) 6 years ago
relationships_controller.rb Change followers page to relationships page in admin UI (#12927) 5 years ago
remote_follow_controller.rb Fix redirecting non-functional accounts on public pages (#11978) 6 years ago
remote_interaction_controller.rb Fix functional user requirements in whitelist mode (#14093) 5 years ago
shares_controller.rb Fix blurhash and autoplay not working on public pages (#11585) 6 years ago
statuses_controller.rb Fix functional user requirements in whitelist mode (#14093) 5 years ago
tags_controller.rb Fix rubocop warning (#14288) 5 years ago