about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-05-10 11:41:43 +0200
committerGitHub <noreply@github.com>2020-05-10 11:41:43 +0200
commit4b766f984689311523b89e1b68d2a11dff3fc396 (patch)
treea3be769d6f45f35ed6ac068112e2cafe4603c017 /app/models
parent4a2ea2e51b22558bf62216b6be932a5d64014164 (diff)
Refactor monkey-patching of Goldfinger (#12561)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/remote_follow.rb3
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