mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-10 09:29:18 +00:00
40fd1de488
* Begin coverage for account search service * Coverage for hashtag query * Coverage for calling local vs remote find based on domain presence * Spec to check that exact matches are not duped * Coverage of resolve option * Coverage for account being provided * Start to refactor account search service * Isolate query username and domain methods * Isolate exact_match method * Extract methods for local and remote results * Simplify local vs remote and account isoliation * Extract methods for local and remote results * Simplify de-dupe of exact match * Simplify logic to check for non exact remotes * Cache some methods * Remove nil from exact_match from results array * Return exact matches first * Use find_remote even with no domain Account.find_local is just an alias for Account.find_remote(user, nil) - so we can not bother with the conditional here, and call find_remote directly. |
||
---|---|---|
.. | ||
concerns | ||
pubsubhubbub | ||
account_search_service.rb | ||
after_block_service.rb | ||
authorize_follow_service.rb | ||
base_service.rb | ||
block_domain_service.rb | ||
block_service.rb | ||
fan_out_on_write_service.rb | ||
favourite_service.rb | ||
fetch_atom_service.rb | ||
fetch_link_card_service.rb | ||
fetch_remote_account_service.rb | ||
fetch_remote_resource_service.rb | ||
fetch_remote_status_service.rb | ||
follow_remote_account_service.rb | ||
follow_service.rb | ||
mute_service.rb | ||
notify_service.rb | ||
post_status_service.rb | ||
precompute_feed_service.rb | ||
process_feed_service.rb | ||
process_hashtags_service.rb | ||
process_interaction_service.rb | ||
process_mentions_service.rb | ||
reblog_service.rb | ||
reject_follow_service.rb | ||
remove_status_service.rb | ||
search_service.rb | ||
send_interaction_service.rb | ||
subscribe_service.rb | ||
suspend_account_service.rb | ||
unblock_service.rb | ||
unfavourite_service.rb | ||
unfollow_service.rb | ||
unmute_service.rb | ||
unsubscribe_service.rb | ||
update_remote_profile_service.rb | ||
warm_cache_service.rb |