users: remove 'spoilers' tag from default blacklist.
Rationale: * The spoilers tag is the most frequently removed tag from the default blacklist. * It's frustrating for regular users to have posts randomly hidden because of trivial spoilers from a series they don't care about. * The spoilers tag is used way too liberally for things that aren't considered spoilers on other sites. * If you're looking up fanart on the internet, you should expect to see a certain level of spoilers. * The tag is used very inconsistently, with some characters like Nia_(blade)_(xenoblade) getting the spoilers tag half the time and the rest of the time not.
This commit is contained in:
@@ -67,7 +67,7 @@ class User < ApplicationRecord
|
||||
is_verified
|
||||
]
|
||||
|
||||
DEFAULT_BLACKLIST = ["spoilers", "guro", "scat", "furry -rating:s"].join("\n")
|
||||
DEFAULT_BLACKLIST = ["guro", "scat", "furry -rating:s"].join("\n")
|
||||
|
||||
attribute :id
|
||||
attribute :created_at
|
||||
|
||||
18
script/fixes/107_update_default_blacklist.rb
Executable file
18
script/fixes/107_update_default_blacklist.rb
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
require_relative "base"
|
||||
|
||||
with_confirmation do
|
||||
User.where(blacklisted_tags: "spoilers\nguro\nscat\nfurry -rating:s").update_all(blacklisted_tags: User::DEFAULT_BLACKLIST)
|
||||
User.where(blacklisted_tags: "spoilers\r\nguro\r\nscat\r\nfurry -rating:s").update_all(blacklisted_tags: User::DEFAULT_BLACKLIST)
|
||||
User.where(blacklisted_tags: "spoilers\r\nguro\r\nscat\r\nfurry -rating:s\r\n").update_all(blacklisted_tags: User::DEFAULT_BLACKLIST)
|
||||
|
||||
User.where(blacklisted_tags: "spoilers\nguro\nscat").update_all(blacklisted_tags: "guro\nscat")
|
||||
User.where(blacklisted_tags: "spoilers\r\nguro\r\nscat").update_all(blacklisted_tags: "guro\nscat")
|
||||
User.where(blacklisted_tags: "spoilers\r\nguro\r\nscat\r\n").update_all(blacklisted_tags: "guro\nscat")
|
||||
|
||||
User.where(blacklisted_tags: "spoilers\nscat\nfurry -rating:s").update_all(blacklisted_tags: "scat\nfurry -rating:s")
|
||||
User.where(blacklisted_tags: "spoilers\r\nscat\r\nfurry -rating:s").update_all(blacklisted_tags: "scat\nfurry -rating:s")
|
||||
|
||||
User.where(blacklisted_tags: "spoilers\nguro\nscat\nfurry -rating:s\nyaoi").update_all(blacklisted_tags: "guro\nscat\nfurry -rating:s\nyaoi")
|
||||
end
|
||||
Reference in New Issue
Block a user