Test getting max_characters

This commit is contained in:
jeancf 2023-07-19 17:59:28 +02:00
parent dba9e7d3ab
commit 8ddf85c0cf

View File

@ -1150,6 +1150,11 @@ def main(argv):
if len(tweets) != 0 and mastodon is None: if len(tweets) != 0 and mastodon is None:
mastodon = login(mast_password) mastodon = login(mast_password)
# Check toot character limit on mastodon instance
mast_statuses = mastodon.instance().configuration.statuses
logging.debug('Instance configuration:')
logging.debug(mast_statuses)
# ********************************************************** # **********************************************************
# Iterate tweets in list. # Iterate tweets in list.
# post each on Mastodon and record it in database # post each on Mastodon and record it in database