mirror of
https://github.com/Horhik/Instagram2Fedi.git
synced 2024-11-22 08:11:26 +00:00
Make carousels great again! 🎠
This commit is contained in:
parent
95e8420471
commit
31380e67a4
BIN
src/__pycache__/already_posted.cpython-39.pyc
Normal file
BIN
src/__pycache__/already_posted.cpython-39.pyc
Normal file
Binary file not shown.
BIN
src/__pycache__/converters.cpython-39.pyc
Normal file
BIN
src/__pycache__/converters.cpython-39.pyc
Normal file
Binary file not shown.
BIN
src/__pycache__/network.cpython-39.pyc
Normal file
BIN
src/__pycache__/network.cpython-39.pyc
Normal file
Binary file not shown.
|
@ -42,11 +42,10 @@ def toot(urls, title, mastodon, fetched_user ):
|
|||
ids = []
|
||||
for url in urls:
|
||||
ids.append(upload_image_to_mastodon(url, mastodon))
|
||||
print(url)
|
||||
post_text = str(title) + "\n" + "crosposted from https://instagram.com/"+fetched_user # creating post text
|
||||
post_text = post_text[0:1000]
|
||||
print(ids)
|
||||
mastodon.status_post(post_text, media_ids = ids)
|
||||
post_text = str(title) + "\n" + "crosposted from https://instagram.com/"+fetched_user # creating post text
|
||||
post_text = post_text[0:1000]
|
||||
print(ids)
|
||||
mastodon.status_post(post_text, media_ids = ids)
|
||||
|
||||
except Exception as e:
|
||||
print(Fore.RED + "😿 > Failed to create toot \n", e)
|
||||
|
|
Loading…
Reference in a new issue