Skip to content

Commit

Permalink
Reply to non-int, and also longer posts, Pleroma style
Browse files Browse the repository at this point in the history
  • Loading branch information
snan authored and ihabunek committed Sep 1, 2020
1 parent 957eec6 commit 103bc43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]

Expand Down
2 changes: 1 addition & 1 deletion toot/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def editor(value):
"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"], {
Expand Down
2 changes: 1 addition & 1 deletion toot/tui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def _load_instance():

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)

Expand Down

0 comments on commit 103bc43

Please sign in to comment.