From 7ba1849bc225a718a2ecfc0078a8ef99022dff30 Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 18 Jun 2019 16:55:33 -0300 Subject: [PATCH] fix validation when searching on a dm/gdm --- litecord/blueprints/channels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/blueprints/channels.py b/litecord/blueprints/channels.py index c67e788..771fbfd 100644 --- a/litecord/blueprints/channels.py +++ b/litecord/blueprints/channels.py @@ -588,7 +588,7 @@ async def _search_channel(channel_id): await channel_check(user_id, channel_id) await channel_perm_check(user_id, channel_id, 'read_messages') - j = validate(request.args, SEARCH_CHANNEL) + j = validate(dict(request.args), SEARCH_CHANNEL) # main search query # the context (before/after) columns are copied from the guilds blueprint.