html_for_tweet double expanding links #447
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#447
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tweet URL: https://twitter.com/CCS_multipoint/status/882520917007532033
Repro:
Output:
You can see that all of the base level
twython-urlanchors have their hrefs being another<a class="twython-url", which is obviously not valid. I have a feeling that this is due to the t.co being replaced with a buff.ly, and perhaps that being replaced again?Here's a minimal reproduction case based on that tweet. It appears to happen when a URL entity shares a
urlattribute with another URL entity.Checkpoint 1 output:
Checkpoint 2 output:
FWIW, messing with the
display_urlandexpanded_urlinstead ofurlbetween checkpoints 1 and 2 still results in the double-expansion behaviour.Hope this helps :)