Reply to non-int, and also longer posts, Pleroma style
This commit is contained in:
parent
957eec6f40
commit
103bc43c26
|
@ -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',
|
||||
]
|
||||
|
||||
|
|
|
@ -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"], {
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue