about summary refs log tree commit diff
path: root/app/models/account_identity_proof.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-03-28 18:45:28 +0100
committerGitHub <noreply@github.com>2019-03-28 18:45:28 +0100
commitfad29fd23052cdf3d51a6e0eb03557554572d402 (patch)
tree4ba415e02d601654867889da11391b509909635d /app/models/account_identity_proof.rb
parentbb316faffff7a76bc89f7e942233f0e14caf60f5 (diff)
parentce7d055d3cc7927a597c8bb56b45f8e0aae91319 (diff)
Merge pull request #973 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/account_identity_proof.rb')
-rw-r--r--app/models/account_identity_proof.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account_identity_proof.rb b/app/models/account_identity_proof.rb
index e7a3f97e5..1ac234735 100644
--- a/app/models/account_identity_proof.rb
+++ b/app/models/account_identity_proof.rb
@@ -26,7 +26,7 @@ class AccountIdentityProof < ApplicationRecord
 
   scope :active, -> { where(verified: true, live: true) }
 
-  after_create_commit :queue_worker
+  after_commit :queue_worker, if: :saved_change_to_token?
 
   delegate :refresh!, :on_success_path, :badge, to: :provider_instance