Add workaround for Twitter's layout A/B testing

Fixes #110
This commit is contained in:
Zed
2020-01-19 08:34:32 +01:00
parent 6b16ad2ce0
commit ba57511a01
10 changed files with 43 additions and 21 deletions

View File

@@ -20,7 +20,8 @@ proc showRss*(req: Request; hostname: string; query: Query): Future[(string, str
(profile, timeline) =
await fetchSingleTimeline(names[0], after, getAgent(), query, media=false)
else:
timeline = await fetchMultiTimeline(names, after, getAgent(), query, media=false)
let multiQuery = query.getMultiQuery(names)
timeline = await getSearch[Tweet](multiQuery, after, getAgent(), media=false)
# this is kinda dumb
profile = Profile(
username: name,