|
|
|
@ -27,7 +27,7 @@ from facebook_scraper import get_posts
|
|
|
|
|
from mastodon import Mastodon |
|
|
|
|
from vendor import split_tweet |
|
|
|
|
|
|
|
|
|
logging.basicConfig(filename='mastaface.log',level=logging.DEBUG) |
|
|
|
|
logging.basicConfig(filename='mastaface.log',level=logging.ERROR) |
|
|
|
|
|
|
|
|
|
# Global variables |
|
|
|
|
database_filename = 'database.pkl' |
|
|
|
@ -114,7 +114,7 @@ for bridge in config['bridges']:
|
|
|
|
|
else: |
|
|
|
|
statuses.append(mastodon.status_post(toot)) |
|
|
|
|
is_main_toot = False |
|
|
|
|
logging.info('Bridged post' + str(post['post_id']) + ' to ', str(statuses[-1]['id']) ) |
|
|
|
|
logging.info('Bridged post' + str(post['post_id']) + ' to ' + str(statuses[-1]['id']) ) |
|
|
|
|
else: |
|
|
|
|
statuses.append(mastodon.status_post(toot, in_reply_to_id = statuses[-1], visibility = 'unlisted')) |
|
|
|
|
# After bridging was successfull update database of bridging history |
|
|
|
|