fix: twitter advanced search by duplicate encode (#4713)

This commit is contained in:
Mitt
2020-05-11 18:34:01 +08:00
committed by GitHub
parent 62667568d0
commit d3d17575b4
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ module.exports = async (ctx) => {
}
const keyword = ctx.params.keyword;
const result = await utils.getTwit().get('search/tweets', {
q: encodeURIComponent(keyword),
q: keyword,
count: 50,
tweet_mode: 'extended',
result_type: 'recent',