about summary refs log tree commit diff
path: root/app/lib/proof_provider
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-03-30 02:12:06 +0100
committerGitHub <noreply@github.com>2019-03-30 02:12:06 +0100
commit1714ea597866556ef9dd21d5d382f1d9181e0924 (patch)
tree4cf231f724d1918790b31d53dbd5d1c8a2c80527 /app/lib/proof_provider
parent8fb69f1366577483f048bf4d69f610087da99cb1 (diff)
Add ActivityPub representation for identity proofs (#10414)
* Add ActivityPub representation for identity proofs

* Add tests
Diffstat (limited to 'app/lib/proof_provider')
-rw-r--r--app/lib/proof_provider/keybase.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/lib/proof_provider/keybase.rb b/app/lib/proof_provider/keybase.rb
index 672e1cb4b..628972e9d 100644
--- a/app/lib/proof_provider/keybase.rb
+++ b/app/lib/proof_provider/keybase.rb
@@ -28,7 +28,8 @@ class ProofProvider::Keybase
       return
     end
 
-    return if @proof.provider_username.blank?
+    # Do not perform synchronous validation for remote accounts
+    return if @proof.provider_username.blank? || !@proof.account.local?
 
     if verifier.valid?
       @proof.verified = true