Fix Performance/DeletePrefix cop (#24796)

This commit is contained in:
Matt Jankowski
2023-05-02 15:07:45 -04:00
committed by GitHub
parent 05e3abe9d9
commit 668a19a2f3
10 changed files with 9 additions and 24 deletions

View File

@@ -67,7 +67,7 @@ class ActivityPub::FetchRemoteActorService < BaseService
end
def split_acct(acct)
acct.gsub(/\Aacct:/, '').split('@')
acct.delete_prefix('acct:').split('@')
end
def supported_context?