0
0
Fork 0

Remove WebfingerHelper module & move usage inline (#31203)

This commit is contained in:
Matt Jankowski 2024-10-01 05:54:42 -04:00 committed by GitHub
parent e6cda8388c
commit e975b55c24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 15 deletions

View file

@ -3,7 +3,6 @@
class RemoteFollow
include ActiveModel::Validations
include RoutingHelper
include WebfingerHelper
attr_accessor :acct, :addressable_template
@ -66,7 +65,7 @@ class RemoteFollow
end
def acct_resource
@acct_resource ||= webfinger!("acct:#{acct}")
@acct_resource ||= Webfinger.new("acct:#{acct}").perform
rescue Webfinger::Error, HTTP::ConnectionError
nil
end