about summary refs log tree commit diff
path: root/app/services/remove_status_service.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2021-04-11 11:22:50 +0200
committerGitHub <noreply@github.com>2021-04-11 11:22:50 +0200
commit619fad6cf8078ea997554081febe850404bee73c (patch)
treed710dec1c628bedddb5fe88858b355fd78c9acc0 /app/services/remove_status_service.rb
parent7183d9a113f67bb6b0f21bd2b3ba2f0d94b6134c (diff)
Remove spam check and dependency on nilsimsa gem (#16011)
Diffstat (limited to 'app/services/remove_status_service.rb')
-rw-r--r--app/services/remove_status_service.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/services/remove_status_service.rb b/app/services/remove_status_service.rb
index d6043fb5d..d642beeaa 100644
--- a/app/services/remove_status_service.rb
+++ b/app/services/remove_status_service.rb
@@ -41,7 +41,6 @@ class RemoveStatusService < BaseService
           remove_from_hashtags
           remove_from_public
           remove_from_media if @status.media_attachments.any?
-          remove_from_spam_check
           remove_media
         end
 
@@ -163,10 +162,6 @@ class RemoveStatusService < BaseService
     @status.media_attachments.destroy_all
   end
 
-  def remove_from_spam_check
-    redis.zremrangebyscore("spam_check:#{@status.account_id}", @status.id, @status.id)
-  end
-
   def lock_options
     { redis: Redis.current, key: "distribute:#{@status.id}" }
   end