about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-17 19:34:35 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-17 19:34:35 -0600
commit4c1705e58dbdc47a90b9bc6d989d1a90ebd8287c (patch)
tree6f3f3bf79333dbf57fbc2f15d19e042c6020f0f1 /app
parent3ddcb6dcf336c092aa8dce5eeb128e8c9d9a1661 (diff)
remove unique job constaint, handle `Mastodon::NotPermittedError`
Diffstat (limited to 'app')
-rw-r--r--app/workers/reblog_status_worker.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/workers/reblog_status_worker.rb b/app/workers/reblog_status_worker.rb
index 250041a7d..1f388bb3a 100644
--- a/app/workers/reblog_status_worker.rb
+++ b/app/workers/reblog_status_worker.rb
@@ -3,15 +3,13 @@
 class ReblogStatusWorker
   include Sidekiq::Worker
 
-  sidekiq_options unique: :until_executed
-
   def perform(account_id, status_id, reblog_params = {})
     account = Account.find(account_id)
     status = Status.find(status_id)
     return false if status.destroyed? || !status.distributable?
     ReblogService.new.call(account, status, reblog_params.symbolize_keys)
     true
-  rescue ActiveRecord::RecordNotFound, ActiveRecord::RecordInvalid
+  rescue ActiveRecord::RecordNotFound, ActiveRecord::RecordInvalid, Mastodon::NotPermittedError
     true
   end
 end