about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers')
-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