Wykres commitów

118 Commity (master)

Autor SHA1 Wiadomość Data
Ivan Habunek db266c563d
Don't set default visibility
This way the visiblility will default to the one in user preferences. By
default this is 'public'.
2024-01-02 21:56:36 +01:00
Lexi Winter ec48e8eed8 tui: allow editing toots
Add new [E]dit command to the timeline: opens an existing toot to allow
editing it.  Since this is more or less the same operation as posting a
new toot, extend the StatusComposer view to support this rather than
implementing a new view.

Add a new api method, fetch_status_source(), to implement the
/api/v1/statuses/{id}/source endpoint used to fetch the original post
text.
2024-01-01 14:16:09 +00:00
Lexi Winter 5dd53b1b9c tui: honour user's default visibility preference
Mastodon allows the user to configure a default visibility which should
apply to all clients.  This setting is returned by the
/api/v1/preferences method.

Fetch the user preferences when the TUI starts, and use it to set the
default visibility when composing a new toot.  The preference can be
overridden by a new command-line option, toot tui --default-visibility=.
If neither the preference nor the option are set, fall back to
get_default_visibility().
2023-12-31 18:20:47 +00:00
Ivan Habunek 561506ee2d
Enable getting public timelines without logging in 2023-12-17 09:56:39 +01:00
Ivan Habunek 1dac093be7
Add --json option to lists commands 2023-12-14 14:10:53 +01:00
Ivan Habunek 164016481d
Replace lists commands with subcommands 2023-12-13 16:14:46 +01:00
Ivan Habunek 01f3370b89
Add `tags info` command 2023-12-13 08:40:02 +01:00
Ivan Habunek 381e3583ef
Add featured tag commands 2023-12-13 08:40:02 +01:00
Ivan Habunek c7e01c77f2
Add --json option to tag commands 2023-12-13 08:40:02 +01:00
Ivan Habunek 0f4f0b3863
Don't page lists, they don't support paging 2023-12-08 08:44:24 +01:00
Ivan Habunek 3947b28de5
Add upload command 2023-12-03 13:45:24 +01:00
Ivan Habunek 2429d9f751
Migrate timeline commands 2023-12-03 13:29:31 +01:00
Ivan Habunek d8c7084678
Migrate auth commands 2023-11-30 20:12:04 +01:00
Ivan Habunek 443f9445b1
Add --json option to account commands 2023-11-21 18:16:37 +01:00
Ivan Habunek 016ae25569
Add --json option to various status commands 2023-11-21 16:51:02 +01:00
Ivan Habunek 4203e8d313
Dedupe duplicate function 2023-11-21 16:51:02 +01:00
Ivan Habunek 7793d4499a
Add --json option to post command 2023-11-21 16:51:02 +01:00
Ivan Habunek 3530553a06
Add --json option to status and thread commands 2023-11-21 16:51:02 +01:00
Ivan Habunek ae7a36b8d8
Add --json option to search command 2023-11-21 16:50:55 +01:00
Ivan Habunek 9664d71b57
Make get_instance return the response instead of json 2023-11-21 16:50:19 +01:00
Ivan Habunek 45962b27c3
Fix search sending type=None if not specified 2023-11-21 16:48:12 +01:00
Ivan Habunek 6cdba16fcf
Make verify_credentials return the http response
Required if we want to emit json without decoding it
2023-11-18 15:40:50 +01:00
Florian Obser acc80f6890 Implemented "blocked" command
This lists accounts the logged in user has blocked. It is useful for
creating regular backups.
2023-07-21 16:24:57 +02:00
Florian Obser 39d7a345ed Implemented "muted" command
This lists accounts the logged in user has muted. It is useful for
creating regular backups.
2023-07-21 16:24:38 +02:00
Daniel Schwarz e55474158a
Added toot timeline --account_tl console command
Displays the timeline of any account (public timeline for
users who are not you, public+private for you)

Right now it does not display reblogs or replies,
this could be configurable if we add more command line flags
2023-06-22 11:07:54 +02:00
Dan Schwarz 2e0f2548e6
Added toot list_remove_account command 2023-03-30 10:01:04 +02:00
Dan Schwarz 80f05e8147
Added toot list_add_account command 2023-03-30 10:01:03 +02:00
Daniel Schwarz bfdd84870f
Added "toot list_delete" and "toot list_create" commands 2023-03-30 10:01:03 +02:00
Daniel Schwarz 08bb7aae71
added "toot list_accounts" command 2023-03-30 10:01:03 +02:00
Dan Schwarz 39e1f92970
add get_lists method 2023-03-30 10:01:01 +02:00
Ivan Habunek 47c16b01ad
Add poll options to toot post 2023-03-09 11:02:15 +01:00
Ivan Habunek d5b5c89996
Add support for custom instance domains
The instance domain can be different from their base url, for example
the instance at https://social.vivaldi.net uses the vivaldi.net domain,
sans 'social'.

This commit requires the user to provide the base url of the instance,
instead of domain name. The domain is then fetched from the server.

fixes #217
2023-03-09 11:00:45 +01:00
rogarb 60029a442e
Add conversations support in TUI 2023-03-04 23:33:51 +01:00
Ivan Habunek 244502ec0b
Wait until media uploads finish processing 2023-03-03 11:44:40 +01:00
Ivan Habunek e26cb52fd7
Enable providing media thumbnails
issue #301
2023-03-03 11:44:39 +01:00
Ivan Habunek 14a286ef0d
Use v2 endpoint to upload media
v1 is deprecated
2023-03-03 09:03:33 +01:00
Ivan Habunek 7ed28b3bc3
Add helper function for stripping None values 2023-03-02 11:28:24 +01:00
Ivan Habunek 882b6c4d0a
Minor tweaks 2023-03-01 07:51:36 +01:00
Daniel Schwarz 8ee414c83a Make _notif_timeline_generator more robust
Notifications without statuses shouldn't crash
2023-02-24 22:51:27 -05:00
Daniel Schwarz 744dc090b4 Basic support for viewing Status and Mention notifs as a timeline
Now the Goto Menu has a < Notifications > button. This will load
your Status and Mention notifications as a standard timeline
for viewing.
2023-02-24 22:19:24 -05:00
Ivan Habunek 6c5eb528ee
Add command for updating user account
fixes #314
2023-02-21 18:10:14 +01:00
Daniel Schwarz 95473fcd6e
Add get_relationship method to api 2023-02-20 09:08:53 +01:00
Ivan Habunek a633f757b5
Merge pull request #312 from danschwarz/poll3
UI to vote in polls
2023-02-20 09:06:51 +01:00
Daniel Schwarz 80e711a3a1 Fixed type error in vote method signature 2023-02-15 21:50:50 -05:00
Daniel Schwarz b2a0bc5634 fixed method signature for vote (added list type of int) 2023-02-14 22:40:06 -05:00
Daniel Schwarz b50fb9d9fd Added vote method to api 2023-02-10 21:44:37 -05:00
Ivan Habunek f52fe00d26
Pass params as dict 2023-02-04 09:01:48 +01:00
Daniel Schwarz 5ae6db8689 Added 'whois' API method to retrieve account by ID
More reliable and faster than retrieving by account name
tbd: is "whois" the right name for this method?
2023-02-03 15:02:47 +01:00
Ivan Habunek 15d377e889
Expand tests 2023-01-02 11:53:50 +01:00
Ivan Habunek a83c3520ae
Use fstrings instead of format 2023-01-02 11:53:50 +01:00