From 29e01395839f80ac8eb74213cdc86fefeb6b7ac1 Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 20 Apr 2022 22:30:23 -0500 Subject: [PATCH] Fix #5135: /count Discord slash command broken with aliases and shortcuts. --- app/logical/discord_slash_command/count_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/discord_slash_command/count_command.rb b/app/logical/discord_slash_command/count_command.rb index adcb2d100..5b4e15dc8 100644 --- a/app/logical/discord_slash_command/count_command.rb +++ b/app/logical/discord_slash_command/count_command.rb @@ -13,7 +13,7 @@ class DiscordSlashCommand def call tags = params[:tags] - count = PostQuery.new(tags).fast_count(timeout: 9_000, estimate_count: false, skip_cache: true) + count = PostQuery.normalize(tags).fast_count(timeout: 9_000, estimate_count: false, skip_cache: true) respond_with("`#{tags}`: #{count} posts") end