mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-29 04:35:54 -04:00
Fix timeline generator to respect --instance option
Access the anon public & tag timelines in this case. This makes it possible to see those timelines without being logged in.
This commit is contained in:
parent
d5f987e1b2
commit
ad272f521b
@ -8,6 +8,7 @@ Changelog
|
|||||||
* Fix access to public and tag timelines when on private mastodon instances
|
* Fix access to public and tag timelines when on private mastodon instances
|
||||||
(#168)
|
(#168)
|
||||||
* Add `--reverse` option to `toot notifications` (#151)
|
* Add `--reverse` option to `toot notifications` (#151)
|
||||||
|
* Fix `toot timeline` to respect `--instance` option
|
||||||
* TUI: Add opton to pin/save tag timelines (#163, thanks @dlax)
|
* TUI: Add opton to pin/save tag timelines (#163, thanks @dlax)
|
||||||
* TUI: Fixed crash on empty timeline (#138, thanks ecs)
|
* TUI: Fixed crash on empty timeline (#138, thanks ecs)
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
changes:
|
changes:
|
||||||
- "Fix access to public and tag timelines when on private mastodon instances (#168)"
|
- "Fix access to public and tag timelines when on private mastodon instances (#168)"
|
||||||
- "Add `--reverse` option to `toot notifications` (#151)"
|
- "Add `--reverse` option to `toot notifications` (#151)"
|
||||||
|
- "Fix `toot timeline` to respect `--instance` option"
|
||||||
- "TUI: Add opton to pin/save tag timelines (#163, thanks @dlax)"
|
- "TUI: Add opton to pin/save tag timelines (#163, thanks @dlax)"
|
||||||
- "TUI: Fixed crash on empty timeline (#138, thanks ecs)"
|
- "TUI: Fixed crash on empty timeline (#138, thanks ecs)"
|
||||||
|
|
||||||
|
@ -22,8 +22,14 @@ def get_timeline_generator(app, user, args):
|
|||||||
raise ConsoleError("The --instance option is only valid alongside --public or --tag.")
|
raise ConsoleError("The --instance option is only valid alongside --public or --tag.")
|
||||||
|
|
||||||
if args.public:
|
if args.public:
|
||||||
|
if args.instance:
|
||||||
|
return api.anon_public_timeline_generator(args.instance, local=args.local, limit=args.count)
|
||||||
|
else:
|
||||||
return api.public_timeline_generator(app, user, local=args.local, limit=args.count)
|
return api.public_timeline_generator(app, user, local=args.local, limit=args.count)
|
||||||
elif args.tag:
|
elif args.tag:
|
||||||
|
if args.instance:
|
||||||
|
return api.anon_tag_timeline_generator(args.instance, args.tag, limit=args.count)
|
||||||
|
else:
|
||||||
return api.tag_timeline_generator(app, user, args.tag, local=args.local, limit=args.count)
|
return api.tag_timeline_generator(app, user, args.tag, local=args.local, limit=args.count)
|
||||||
elif args.list:
|
elif args.list:
|
||||||
return api.timeline_list_generator(app, user, args.list, limit=args.count)
|
return api.timeline_list_generator(app, user, args.list, limit=args.count)
|
||||||
|
Loading…
Reference in New Issue
Block a user