mastodon/app/services
Matt Jankowski 40fd1de488 Account search service refactor (#1791)
* 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.
2017-04-15 03:17:07 +02:00
..
concerns Rewrite Atom generation from stream entries to use Ox instead of Nokogiri (#1124) 2017-04-07 05:56:56 +02:00
pubsubhubbub
account_search_service.rb Account search service refactor (#1791) 2017-04-15 03:17:07 +02:00
after_block_service.rb Silence more scope order warnings (#1604) 2017-04-12 15:58:08 +02:00
authorize_follow_service.rb Rewrite Atom generation from stream entries to use Ox instead of Nokogiri (#1124) 2017-04-07 05:56:56 +02:00
base_service.rb Remove unused AtomBuilderHelper (#1364) 2017-04-11 19:31:22 +02:00
block_domain_service.rb Make default admin UI page reports. Add admin UI for creating a domain block 2017-04-03 18:55:06 +02:00
block_service.rb Rewrite Atom generation from stream entries to use Ox instead of Nokogiri (#1124) 2017-04-07 05:56:56 +02:00
fan_out_on_write_service.rb Silence more scope order warnings (#1604) 2017-04-12 15:58:08 +02:00
favourite_service.rb Rewrite Atom generation from stream entries to use Ox instead of Nokogiri (#1124) 2017-04-07 05:56:56 +02:00
fetch_atom_service.rb
fetch_link_card_service.rb
fetch_remote_account_service.rb Get handle from atom feed's author/email field instead of guessing from URL (#1344) 2017-04-09 18:43:48 +02:00
fetch_remote_resource_service.rb
fetch_remote_status_service.rb
follow_remote_account_service.rb Refresh webfinger (#1323) 2017-04-15 03:16:05 +02:00
follow_service.rb Rewrite Atom generation from stream entries to use Ox instead of Nokogiri (#1124) 2017-04-07 05:56:56 +02:00
mute_service.rb Silence more scope order warnings (#1604) 2017-04-12 15:58:08 +02:00
notify_service.rb Fix notifications delivered to wrong pubsub channel, optimized RemoveStatusService, 2017-04-06 02:26:59 +02:00
post_status_service.rb Use I18n for media attachment validation errors 2017-04-07 14:23:18 -04:00
precompute_feed_service.rb Spawn FeedInsertWorker to deliver status into personal feed 2017-04-04 19:21:37 +02:00
process_feed_service.rb Allow running mastodon on a different domain as the one used for identifying users (#1267) 2017-04-15 02:15:46 +02:00
process_hashtags_service.rb
process_interaction_service.rb Split SalmonWorker into smaller parts, move profile updating into another job 2017-04-05 21:43:10 +02:00
process_mentions_service.rb
reblog_service.rb
reject_follow_service.rb Rewrite Atom generation from stream entries to use Ox instead of Nokogiri (#1124) 2017-04-07 05:56:56 +02:00
remove_status_service.rb Fix wrong pubsub channel on public timelines 2017-04-06 04:03:23 +02:00
search_service.rb Fix reworked search 2017-03-31 22:45:56 +02:00
send_interaction_service.rb
subscribe_service.rb
suspend_account_service.rb Silence more scope order warnings (#1604) 2017-04-12 15:58:08 +02:00
unblock_service.rb Rewrite Atom generation from stream entries to use Ox instead of Nokogiri (#1124) 2017-04-07 05:56:56 +02:00
unfavourite_service.rb Rewrite Atom generation from stream entries to use Ox instead of Nokogiri (#1124) 2017-04-07 05:56:56 +02:00
unfollow_service.rb Rewrite Atom generation from stream entries to use Ox instead of Nokogiri (#1124) 2017-04-07 05:56:56 +02:00
unmute_service.rb
unsubscribe_service.rb
update_remote_profile_service.rb Fix #1141, fix #1126 - Avatar/profile info fetching (#1215) 2017-04-08 13:26:03 +02:00
warm_cache_service.rb