Merge pull request #315 from kmycode/upstream-20231129

Upstream 20231129
This commit is contained in:
KMY(雪あすか) 2023-11-29 13:38:12 +09:00 committed by GitHub
commit a52a8ce214
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 851 additions and 428 deletions

View file

@ -100,7 +100,9 @@ class ResolveAccountService < BaseService
end
def split_acct(acct)
acct.delete_prefix('acct:').split('@')
acct.delete_prefix('acct:').split('@').tap do |parts|
raise Webfinger::Error, 'Webfinger response is missing user or host value' unless parts.size == 2
end
end
def fetch_account!