Remove spam check and dependency on nilsimsa gem (#16011)
This commit is contained in:
@@ -43,7 +43,6 @@ class ProcessMentionsService < BaseService
|
||||
end
|
||||
|
||||
status.save!
|
||||
check_for_spam(status)
|
||||
|
||||
mentions.each { |mention| create_notification(mention) }
|
||||
end
|
||||
@@ -72,8 +71,4 @@ class ProcessMentionsService < BaseService
|
||||
def resolve_account_service
|
||||
ResolveAccountService.new
|
||||
end
|
||||
|
||||
def check_for_spam(status)
|
||||
SpamCheck.perform(status)
|
||||
end
|
||||
end
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user