mirror of
https://github.com/ihabunek/toot
synced 2025-01-27 09:41:26 +01:00
Allow editor when not in tty
I was told there are legitimate use cases I was not aware of.
This commit is contained in:
parent
0f4f0b3863
commit
63691a3637
@ -130,9 +130,6 @@ def post(
|
||||
json: bool
|
||||
):
|
||||
"""Post a new status"""
|
||||
if editor and not sys.stdin.isatty():
|
||||
raise click.ClickException("Cannot run editor if not in tty.")
|
||||
|
||||
if len(media) > 4:
|
||||
raise click.ClickException("Cannot attach more than 4 files.")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user