mirror of https://github.com/mastodon/mastodon
* Fix error responses in `from` search prefix (addresses mastodon/mastodon#17941) Using unsupported prefixes now reports a 422; searching for posts from an account the instance is not aware of reports a 404. TODO: The UI for this on the front end is abysmal. Searching `from:username@domain` now succeeds when `domain` is the local domain; searching `from:@username(@domain)?` now works as expected. * Remove unused methods on new Error classes as they are not being used Currently when `raise`d there are error messages being supplied, but this is not actually being used. The associated `raise`s have been edited accordingly. * Remove needless comments * Satisfy rubocop * Try fixing tests being unable to find AccountFindingConcern methods * Satisfy rubocop * Simplify `from` prefix logic This incorporates @ClearlyClaire's suggestion (see https://github.com/mastodon/mastodon/pull/17963#pullrequestreview-933986737). Accepctable account strings in `from:` clauses are more lenient than before this commit; for example, `from:@user@example.org@asnteo +cat` will not error, and return posts by @user@example.org containing the word "cat". This is more consistent with how Mastodon matches mentions in statuses. In addition, `from` clauses will not be checked for syntatically invalid usernames or domain names, simply 404ing when `Account.find_remote!` raises ActiveRecord::NotFound. New code for this PR that is no longer used has been removed. |
3 years ago | |
---|---|---|
.. | ||
activitypub | 3 years ago | |
admin | 3 years ago | |
api | 3 years ago | |
auth | 3 years ago | |
concerns | 3 years ago | |
disputes | 3 years ago | |
oauth | 5 years ago | |
settings | 3 years ago | |
well_known | 3 years ago | |
about_controller.rb | 4 years ago | |
account_follow_controller.rb | 5 years ago | |
account_unfollow_controller.rb | ||
accounts_controller.rb | 3 years ago | |
application_controller.rb | 4 years ago | |
authorize_interactions_controller.rb | 5 years ago | |
custom_css_controller.rb | 4 years ago | |
directories_controller.rb | 4 years ago | |
emojis_controller.rb | ||
filters_controller.rb | 4 years ago | |
follower_accounts_controller.rb | 3 years ago | |
following_accounts_controller.rb | 3 years ago | |
health_controller.rb | 4 years ago | |
home_controller.rb | 4 years ago | |
instance_actors_controller.rb | 3 years ago | |
intents_controller.rb | ||
invites_controller.rb | ||
manifests_controller.rb | 6 years ago | |
media_controller.rb | 3 years ago | |
media_proxy_controller.rb | 4 years ago | |
public_timelines_controller.rb | ||
relationships_controller.rb | 4 years ago | |
remote_follow_controller.rb | 6 years ago | |
remote_interaction_controller.rb | 5 years ago | |
shares_controller.rb | ||
statuses_cleanup_controller.rb | 4 years ago | |
statuses_controller.rb | 4 years ago | |
tags_controller.rb | 5 years ago |