Reply to non-int, and also longer posts, Pleroma style

This commit is contained in:
Sandra Snan 2020-09-01 16:09:29 +02:00 committed by Ivan Habunek
parent 957eec6f40
commit 103bc43c26
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
3 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ def test_post_with_options(mock_post, mock_uuid, capsys):
'--visibility', 'unlisted',
'--sensitive',
'--spoiler-text', 'Spoiler!',
'--reply-to', '123',
'--reply-to', '123a',
'--language', 'hrv',
]

View File

@ -321,7 +321,7 @@ POST_COMMANDS = [
"help": "text to be shown as a warning before the actual content",
}),
(["-r", "--reply-to"], {
"type": int,
"type": str,
"help": "local ID of the status you want to reply to",
}),
(["-l", "--language"], {

View File

@ -305,7 +305,7 @@ class TUI(urwid.Frame):
def _done(instance):
if "max_toot_chars" in instance:
self.max_toot_chars
self.max_toot_chars = instance["max_toot_chars"]
return self.run_in_thread(_load_instance, done_callback=_done)