mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-23 20:11:11 +00:00
Modify status_post. Code complete.
This commit is contained in:
parent
8bd8aeec29
commit
b227c1bb04
4
twoot.py
4
twoot.py
|
@ -1204,9 +1204,9 @@ def main(argv):
|
||||||
toot = {}
|
toot = {}
|
||||||
try:
|
try:
|
||||||
if len(media_ids) == 0:
|
if len(media_ids) == 0:
|
||||||
toot = mastodon.status_post(tweet['tweet_text'])
|
toot = mastodon.status_post(tweet['tweet_text'], replied_to_toot)
|
||||||
else:
|
else:
|
||||||
toot = mastodon.status_post(tweet['tweet_text'], media_ids=media_ids)
|
toot = mastodon.status_post(tweet['tweet_text'], replied_to_toot, media_ids=media_ids)
|
||||||
|
|
||||||
except MastodonAPIError:
|
except MastodonAPIError:
|
||||||
# Assuming this is an:
|
# Assuming this is an:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user