test: fix broken tests.
This commit is contained in:
@@ -63,6 +63,6 @@ module TagRelationshipRetirementService
|
||||
end
|
||||
|
||||
def is_unused?(name)
|
||||
return !Post.tag_match("status:any #{name}").where("created_at > ?", THRESHOLD.ago).exists?
|
||||
!Post.raw_tag_match(name).where("created_at > ?", THRESHOLD.ago).exists?
|
||||
end
|
||||
end
|
||||
|
||||
@@ -37,7 +37,7 @@ class IpBan < ApplicationRecord
|
||||
|
||||
def create_mod_action
|
||||
if new_record?
|
||||
ModAction.log("#{CurrentUser.user.name} created ip ban for #{ip_addr}", :ip_ban_create)
|
||||
ModAction.log("#{creator.name} created ip ban for #{ip_addr}", :ip_ban_create)
|
||||
elsif is_deleted? == true && is_deleted_was == false
|
||||
ModAction.log("#{CurrentUser.user.name} deleted ip ban for #{ip_addr}", :ip_ban_delete)
|
||||
elsif is_deleted? == false && is_deleted_was == true
|
||||
|
||||
Reference in New Issue
Block a user