Replace any twitter tracking link by the final link - #29
Open
Gogowitsch wants to merge 4 commits into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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