mirror of
https://github.com/ihabunek/toot.git
synced 2024-11-03 04:17:21 -05:00
Merge pull request #70 from waweic/master
Added an option to reverse the timeline
This commit is contained in:
commit
881872eb04
@ -24,6 +24,9 @@ def timeline(app, user, args):
|
|||||||
else:
|
else:
|
||||||
items = api.timeline_home(app, user)
|
items = api.timeline_home(app, user)
|
||||||
|
|
||||||
|
if args.reverse:
|
||||||
|
items = reversed(items)
|
||||||
|
|
||||||
print_timeline(items)
|
print_timeline(items)
|
||||||
|
|
||||||
|
|
||||||
|
@ -156,6 +156,11 @@ READ_COMMANDS = [
|
|||||||
"default": False,
|
"default": False,
|
||||||
"help": "Show only statuses from local instance (public and tag timelines only).",
|
"help": "Show only statuses from local instance (public and tag timelines only).",
|
||||||
}),
|
}),
|
||||||
|
(["-r", "--reverse"], {
|
||||||
|
"action": "store_true",
|
||||||
|
"default": False,
|
||||||
|
"help": "Reverse the order of the shown timeline (to new posts at the bottom)",
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
require_auth=True,
|
require_auth=True,
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user