1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00

Don't set default visibility

This way the visiblility will default to the one in user preferences. By
default this is 'public'.
This commit is contained in:
Ivan Habunek 2024-01-02 21:55:56 +01:00
parent 03035c31a0
commit db266c563d
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
2 changed files with 2 additions and 3 deletions

View File

@ -183,7 +183,7 @@ def post_status(
app,
user,
status,
visibility='public',
visibility=None,
media_ids=None,
sensitive=False,
spoiler_text=None,

View File

@ -40,7 +40,6 @@ from toot.utils.datetime import parse_datetime
"--visibility", "-v",
help="Post visibility",
type=click.Choice(VISIBILITY_CHOICES),
default="public",
)
@click.option(
"--sensitive", "-s",
@ -119,7 +118,7 @@ def post(
media: Tuple[str],
descriptions: Tuple[str],
thumbnails: Tuple[str],
visibility: str,
visibility: Optional[str],
sensitive: bool,
spoiler_text: Optional[str],
reply_to: Optional[str],