Fix error when looking handle with surrounding spaces (#18225)

This commit is contained in:
Claire authored and GitHub committed 2022-05-02 01:00:08 +02:00
1 parent 33f3818d66
commit 9a3be0ad68
2 files changed
+3 -1

No files matched your search

@@ -12,5 +12,7 @@ class Api::V1::Accounts::LookupController < Api::BaseController
def set_account
@account = ResolveAccountService.new.call(params[:acct], skip_webfinger: true) || raise(ActiveRecord::RecordNotFound)
rescue Addressable::URI::InvalidURIError
raise(ActiveRecord::RecordNotFound)
end
end