Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace any twitter tracking link by the final link #29

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

gogowitsch
Copy link

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