mirror of
https://github.com/ihabunek/toot.git
synced 2025-06-30 22:18:36 -04:00
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',
|
'--visibility', 'unlisted',
|
||||||
'--sensitive',
|
'--sensitive',
|
||||||
'--spoiler-text', 'Spoiler!',
|
'--spoiler-text', 'Spoiler!',
|
||||||
'--reply-to', '123',
|
'--reply-to', '123a',
|
||||||
'--language', 'hrv',
|
'--language', 'hrv',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -321,7 +321,7 @@ POST_COMMANDS = [
|
|||||||
"help": "text to be shown as a warning before the actual content",
|
"help": "text to be shown as a warning before the actual content",
|
||||||
}),
|
}),
|
||||||
(["-r", "--reply-to"], {
|
(["-r", "--reply-to"], {
|
||||||
"type": int,
|
"type": str,
|
||||||
"help": "local ID of the status you want to reply to",
|
"help": "local ID of the status you want to reply to",
|
||||||
}),
|
}),
|
||||||
(["-l", "--language"], {
|
(["-l", "--language"], {
|
||||||
|
@ -305,7 +305,7 @@ class TUI(urwid.Frame):
|
|||||||
|
|
||||||
def _done(instance):
|
def _done(instance):
|
||||||
if "max_toot_chars" in 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)
|
return self.run_in_thread(_load_instance, done_callback=_done)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user