fix toot local-only control issue
This commit is contained in:
parent
2f3ac213b0
commit
68d057fda4
1 changed files with 3 additions and 1 deletions
|
@ -75,8 +75,10 @@ def post_toot(content, visibility, token, local_only=False):
|
|||
payload = {
|
||||
'status': content,
|
||||
'visibility': visibility,
|
||||
'local_only': local_only,
|
||||
'local_only': True,
|
||||
}
|
||||
if not local_only:
|
||||
del payload['local_only']
|
||||
response = post(url, headers=headers, data=payload)
|
||||
return response
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue