Allow editor when not in tty

I was told there are legitimate use cases I was not aware of.
This commit is contained in:
Ivan Habunek 2023-12-11 13:59:05 +01:00
parent 0f4f0b3863
commit 63691a3637
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
1 changed files with 0 additions and 3 deletions

View File

@ -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.")