Commit Graph

11 Commits (c61dd918a24761b7a96cb9e65e6943238f630715)

Author SHA1 Message Date
Andrea Scarpino 6a82939adb Fix account and tag searches with leading/trailing spaces ()
* Strip leading & trailing spaces from account query

* Strip leading & trailing spaces from tag search
Yamagishi Kazutoshi d7a17b5e8b Search only from followees ()
Eugen Rochko e20895f251
Add list of lists component to web UI ()
* Add list of lists component to web UI

* Add list adding

* Add list removing

* List editor modal

* Add API account search limited by following=true relation

* Rework list editor modal

* Remove mandatory pagination of GET /api/v1/lists/:id/accounts

* Adjust search input placeholder

* Fix rspec ()

* i18n: (zh-CN) Add missing translations for  ()

* i18n: (zh-CN) yarn manage:translations -- zh-CN

* i18n: (zh-CN) Add missing translations for 

* Fix some issues

- Display loading/missing state for list timelines
- Order lists alphabetically in overview
- Fix async list editor reset
- Redirect to /lists after deleting unpinned list
- Redirect to / after pinning a list

* Remove dead list columns when a list is deleted or fetch returns 404
nullkal 6654c30033 Fix an error when a user tries to search nonexistent remote user (regression from ) ()
Eugen Rochko f3be605286 Rename FollowRemoteAccountService to ResolveRemoteAccountService ()
Rename Activitypub to ActivityPub
happycoloredbanana 9642601126 Avoid comparing domains when looking for an exact match of a local account ()
yhirano 8325866c61 Downgrade rubocop 0.48.1 => 0.46.0 ()
* downgrade rubocop 0.48.1 => 0.46.0

* exclude vendor/**/* from rubocop target files

* add frozen_string_literal comment line

* fix percent literal delimited by ( and )

* fix alignment

* remove comment disabling unknown cop
178inaba d2159deaf2 Optimize account search ()
Tomohiro Suwa 3399dd7a66 Fix nil query_username ()
Matt Jankowski 40fd1de488 Account search service refactor ()
* 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.
Eugen Rochko 05cf086766 New API method: /api/v1/search
Returns accounts, statuses, hashtags arrays