diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-05-10 11:41:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-10 11:41:43 +0200 |
commit | 4b766f984689311523b89e1b68d2a11dff3fc396 (patch) | |
tree | a3be769d6f45f35ed6ac068112e2cafe4603c017 /app/models | |
parent | 4a2ea2e51b22558bf62216b6be932a5d64014164 (diff) |
Refactor monkey-patching of Goldfinger (#12561)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/remote_follow.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/remote_follow.rb b/app/models/remote_follow.rb index 5ea535287..30b84f7d5 100644 --- a/app/models/remote_follow.rb +++ b/app/models/remote_follow.rb @@ -3,6 +3,7 @@ class RemoteFollow include ActiveModel::Validations include RoutingHelper + include WebfingerHelper attr_accessor :acct, :addressable_template @@ -71,7 +72,7 @@ class RemoteFollow end def acct_resource - @acct_resource ||= Goldfinger.finger("acct:#{acct}") + @acct_resource ||= webfinger!("acct:#{acct}") rescue Goldfinger::Error, HTTP::ConnectionError nil end |