Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Schubert <mail@dennis-schubert.de>2015-05-26 06:23:40 +0300
committerDennis Schubert <mail@dennis-schubert.de>2015-05-26 06:25:39 +0300
commit62e8f87f2c17c21d641ffe577adfbade8336e4b9 (patch)
tree2cf73c3f4fba511590ef5d108bc44fffe16c9ee9 /app/workers
parent4f2ee1115804dc1dc35dffc1dad596a5f0b0a90a (diff)
Do not mute ActiveRecord::RecordNotUnique for now see #5971, regression from #5938
closes #5992
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/base.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/workers/base.rb b/app/workers/base.rb
index e33135007..ab506eb2c 100644
--- a/app/workers/base.rb
+++ b/app/workers/base.rb
@@ -25,16 +25,6 @@ module Workers
"already been taken"
"is ignored by the post author"
).any? {|reason| e.message.include? reason }
- rescue ActiveRecord::RecordNotUnique => e
- Rails.logger.info("failed to save received object: #{e.message}")
- raise e unless %w(
- index_comments_on_guid
- index_likes_on_guid
- index_posts_on_guid
- "duplicate key in table 'comments'"
- "duplicate key in table 'likes'"
- "duplicate key in table 'posts'"
- ).any? {|index| e.message.include? index }
end
private