fix validation when searching on a dm/gdm

This commit is contained in:
Luna 2019-06-18 16:55:33 -03:00
parent 262273b618
commit 7ba1849bc2
1 changed files with 1 additions and 1 deletions

View File

@ -588,7 +588,7 @@ async def _search_channel(channel_id):
await channel_check(user_id, channel_id) await channel_check(user_id, channel_id)
await channel_perm_check(user_id, channel_id, 'read_messages') 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 # main search query
# the context (before/after) columns are copied from the guilds blueprint. # the context (before/after) columns are copied from the guilds blueprint.