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:
evazion
2022-03-20 16:49:36 -05:00
parent 71f42d67a7
commit 4b1264991f
2 changed files with 19 additions and 1 deletions

View File

@@ -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

View 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