|
|
|
@ -125,9 +125,9 @@ for bridge in config['bridges']:
|
|
|
|
|
is_main_toot = True |
|
|
|
|
for toot_text in toots_text: |
|
|
|
|
if post['link'] and is_main_toot and (toot_text.find(post['link']) == -1): |
|
|
|
|
toot = toot_text + '\n\n' + post['link'] |
|
|
|
|
toot = toot_text + '\n\n' + post['link'].replace('https://youtu.be/','https://invidious.ggc-project.de/') |
|
|
|
|
else: |
|
|
|
|
toot = toot_text |
|
|
|
|
toot = toot_text.replace('https://youtu.be/','https://invidious.ggc-project.de/') |
|
|
|
|
if is_main_toot: |
|
|
|
|
if post['image']: |
|
|
|
|
statuses.append(mastodon.status_post(toot, media_ids=media)) |
|
|
|
|