Browse Source

typo

master
hfte 2 years ago
parent
commit
4bc594eabf
  1. 6
      mastaface.py

6
mastaface.py

@ -1,4 +1,4 @@
^#!/usr/bin/env python3
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Public Facebook-Page to Mastodon Cross-Poster
@ -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'].replace('https://youtu.be/','https://invidious.ggc-project.de/')
toot = toot_text + '\n\n' + post['link'].replace('https://youtu.be/', 'https://invidious.ggc-project.de/')
else:
toot = toot_text.replace('https://youtu.be/','https://invidious.ggc-project.de/')
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))

Loading…
Cancel
Save