diff --git a/app/logical/discord_slash_command/post_embed.rb b/app/logical/discord_slash_command/post_embed.rb index e19c26236..270a15328 100644 --- a/app/logical/discord_slash_command/post_embed.rb +++ b/app/logical/discord_slash_command/post_embed.rb @@ -56,8 +56,12 @@ class DiscordSlashCommand { text: text } end + def censored_tags + ["guro", "bestiality"] + end + def is_censored? - post.rating != "s" && !is_nsfw_channel? + (post.rating != "s" && !is_nsfw_channel?) || !post.visible?(User.anonymous) || censored_tags.any? { |tag| tag.in?(post.tag_array) } end def is_nsfw_channel?