Skip to content

Replace any twitter tracking link by the final link - #29

Open
Gogowitsch wants to merge 4 commits into
YoloSwagTeam:masterfrom
Gogowitsch:main
Open

Replace any twitter tracking link by the final link#29
Gogowitsch wants to merge 4 commits into
YoloSwagTeam:masterfrom
Gogowitsch:main

Conversation

@Gogowitsch

Copy link
Copy Markdown

Fixes bullet 1 of #22

Also, changes the order of media attachments. The code changes are not mine. They are from https://github.com/fivestone/twitter_2_mastodon

fivestone and others added 4 commits December 25, 2022 22:07
modify some bugs/features:
1. original: if there's a quote tweet in a reply, then toot it.
change to: ignore replies anyway.

2. original: if there's a quote, then ignore the photos outside the quote.
change to: attach the photos from the quote tweet behind the media list of the new tweet.

3. original: do not parse videos, parse thumbnail instead.
change to: upload mp4 video in the toot. If a video is found, then ignore all the other photos.
some mp4 got from Twitter are encoded as iso5 format, which is not accepted by Mastodon. So, if the upload failed, convert the video to mp42 format with local FFmpeg, then reupload.
For multiple photos, the photo list got from Twitter API is reversed to the posting order, so the toot photos order is reversed as well.

fix it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants