about summary refs log tree commit diff
path: root/app/models/favourite.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-12-23 14:33:47 +0100
committerGitHub <noreply@github.com>2020-12-23 14:33:47 +0100
commit225c934a1b66e2fcbedbda7936666c1ca3c9a04b (patch)
treed71a57d5f5b6bd864ec11cc1c914a6c3b30ba612 /app/models/favourite.rb
parent81f4c550b2ed305f39f344d10289b38625f70bf7 (diff)
parent537afa00f35dbaa98cbff284683317b411104a82 (diff)
Merge pull request #1481 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/favourite.rb')
-rw-r--r--app/models/favourite.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/favourite.rb b/app/models/favourite.rb
index bf0ec4449..35028b7dd 100644
--- a/app/models/favourite.rb
+++ b/app/models/favourite.rb
@@ -36,7 +36,7 @@ class Favourite < ApplicationRecord
   end
 
   def decrement_cache_counters
-    return if association(:status).loaded? && (status.marked_for_destruction? || status.marked_for_mass_destruction?)
+    return if association(:status).loaded? && status.marked_for_destruction?
     status&.decrement_count!(:favourites_count)
   end
 end