about summary refs log tree commit diff
path: root/app/lib/proof_provider/keybase/worker.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-04-10 20:28:43 +0200
committerGitHub <noreply@github.com>2019-04-10 20:28:43 +0200
commita9f130b8d8e1d92a10cb92b1295b12d274f3139c (patch)
tree58de8b07c047a8fd9545519cfcfcfd5c7ca0a2c1 /app/lib/proof_provider/keybase/worker.rb
parent793b0513eb14c08443e11202b3ffbee141e33df7 (diff)
Fix Keybase verification using wrong domain for remote accounts (#10547)
Diffstat (limited to 'app/lib/proof_provider/keybase/worker.rb')
-rw-r--r--app/lib/proof_provider/keybase/worker.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/lib/proof_provider/keybase/worker.rb b/app/lib/proof_provider/keybase/worker.rb
index 2872f59c1..bcdd18cc5 100644
--- a/app/lib/proof_provider/keybase/worker.rb
+++ b/app/lib/proof_provider/keybase/worker.rb
@@ -19,9 +19,8 @@ class ProofProvider::Keybase::Worker
   end
 
   def perform(proof_id)
-    proof    = proof_id.is_a?(AccountIdentityProof) ? proof_id : AccountIdentityProof.find(proof_id)
-    verifier = ProofProvider::Keybase::Verifier.new(proof.account.username, proof.provider_username, proof.token)
-    status   = verifier.status
+    proof  = proof_id.is_a?(AccountIdentityProof) ? proof_id : AccountIdentityProof.find(proof_id)
+    status = proof.provider_instance.verifier.status
 
     # If Keybase thinks the proof is valid, and it exists here in Mastodon,
     # then it should be live. Keybase just has to notice that it's here