about summary refs log tree commit diff
path: root/app/controllers/admin/dashboard_controller.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-11-19 19:52:06 +0100
committerGitHub <noreply@github.com>2020-11-19 19:52:06 +0100
commit8b8004a9626442ae31e4dffd79e874e9cde050c6 (patch)
tree8fb0c4743e8d902505d19e1b54b494dada54775b /app/controllers/admin/dashboard_controller.rb
parent96c1e7132971877fba308c51cd42306f0b1bf166 (diff)
Fix webfinger redirect handling in ResolveAccountService (#15187)
* Fix webfinger redirect handling in ResolveAccountService

ResolveAccountService#process_webfinger! handled a one-step webfinger
redirection, but only accepting the result if it matched the exact URI passed
as input, defeating the point of a redirection check.

Instead, use the same logic as in `ActivityPub::FetchRemoteAccountService`,
updating the resulting `acct:` URI with the result of the first webfinger
query.

* Add tests
Diffstat (limited to 'app/controllers/admin/dashboard_controller.rb')
0 files changed, 0 insertions, 0 deletions