1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
mastodon/app
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
..
assets jslint: fix jslint warnings (#1704) 2017-04-15 02:57:26 +02:00
controllers Send initial state in a <script type="application/json"> tag (#1806) 2017-04-15 02:32:42 +02:00
helpers Rename admin/accounts_helper to admin/filter_helper (#1816) 2017-04-15 03:09:55 +02:00
lib Allow running mastodon on a different domain as the one used for identifying users (#1267) 2017-04-15 02:15:46 +02:00
mailers Make Reporting admin section translatable (#1549) 2017-04-12 17:11:49 +02:00
models Remove .keep in models (#1748) 2017-04-14 12:43:29 +02:00
presenters Clean up about page (#1282) 2017-04-09 14:47:25 +02:00
services Account search service refactor (#1791) 2017-04-15 03:17:07 +02:00
validators Organize coverage dirs (#1695) 2017-04-13 16:00:31 +02:00
views Use site title on tags#show page (#1802) 2017-04-15 02:37:20 +02:00
workers Quick best practice cleanup of views/helpers (#1546) 2017-04-12 18:24:18 +02:00