From 22430f2ec14710473dc401469791cfd4e8556adf Mon Sep 17 00:00:00 2001 From: Lily Date: Fri, 17 Sep 2021 18:39:17 -0300 Subject: [PATCH] Update post_embed.rb --- app/logical/discord_slash_command/post_embed.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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?