Fix #5135: /count Discord slash command broken with aliases and shortcuts.

This commit is contained in:
evazion
2022-04-20 22:30:23 -05:00
parent d44bb779fe
commit 29e0139583

View File

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