Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Improve support for photo links #47

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

Conversation

rcombs
Copy link

@rcombs rcombs commented Mar 11, 2022

This implements the change I suggested at https://github.com/robinuniverse/TwitFix/issues/44#issuecomment-1065567675

Additionally cleans up the matching a bit, tweaks the readme, fixes a missing entry in requirements.txt, and simplifies local testing a little.

I haven't fully tested this end-to-end, as I don't have twitter API access set up, but everything seems to behave as expected in the logs.

@daisyUniverse
Copy link
Owner

This looks good to me so far from my testing, but I need to tweak it a bit to make it pick up url encoded endings (ie using /photo/2 or /2 on the end of a twitter link with encoded endings, IE)
image

@daisyUniverse
Copy link
Owner

in a related issue I REALLY need to learn how regex works 🥲

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants