]> cat aescling's git repositories - mastodon.git/commit
Optimize the process of following someone (#9220)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 8 Nov 2018 20:05:42 +0000 (21:05 +0100)
committerGitHub <noreply@github.com>
Thu, 8 Nov 2018 20:05:42 +0000 (21:05 +0100)
commit6d59dfa15d873da75c731b79367ab6b3d1b2f5a5
tree4dda07058520c878354b95ab736ec9f6a36f4d03
parent9cfd610484541c14bcde3c368a158b9b5d2a6499
Optimize the process of following someone (#9220)

* Eliminate extra accounts select query from FollowService

* Optimistically update follow state in web UI and hide loading bar

Fix #6205

* Asynchronize NotifyService in FollowService

And fix failing test

* Skip Webfinger resolve routine when called from FollowService if possible

If an account is ActivityPub, then webfinger re-resolving is not necessary
when called from FollowService. Improve options of ResolveAccountService
app/controllers/api/v1/accounts_controller.rb
app/javascript/mastodon/actions/accounts.js
app/javascript/mastodon/reducers/relationships.js
app/services/concerns/author_extractor.rb
app/services/follow_service.rb
app/services/process_mentions_service.rb
app/services/resolve_account_service.rb
app/workers/local_notification_worker.rb
spec/controllers/authorize_interactions_controller_spec.rb