1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-07 20:45:36 -05:00

Use "max_position" instead of "after" for compat

This commit is contained in:
Zed
2019-10-08 15:15:47 +02:00
parent 381a8a106c
commit 211b086f4d
10 changed files with 17 additions and 40 deletions

View File

@@ -18,17 +18,17 @@ proc createListRouter*(cfg: Config) =
get "/@name/lists/@list":
cond '.' notin @"name"
let
list = await getListTimeline(@"name", @"list", getAgent(), @"after")
list = await getListTimeline(@"name", @"list", getAgent(), @"max_position")
tweets = renderTimelineTweets(list, cookiePrefs(), request.path)
respList list, tweets
get "/@name/lists/@list/members":
cond '.' notin @"name"
let list =
if @"after".len == 0:
if @"max_position".len == 0:
await getListMembers(@"name", @"list", getAgent())
else:
await getListMembersSearch(@"name", @"list", getAgent(), @"after")
await getListMembersSearch(@"name", @"list", getAgent(), @"max_position")
let users = renderTimelineUsers(list, cookiePrefs(), request.path)
respList list, users