Fix links in tweets when there's a prefix #479
No reviewers
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#479
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-html-for-tweet-2"
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?
If a tweet had a prefix (@names that it was replying to) then the length
of these is counted in the indices that show the locations of entities
within the tweet. But we were applying those indices to the 'display'
part of the tweet that doesn't include the prefix.
So, if the tweet was:
and the prefix was
@bob, then the indices for linking@billare something like
17,21. But we were applying the link around@billto the display text part of the tweet, which is:And so the indices no longer lined up with
@bill.Now they do, and the same for URLs and hashtags.
Coverage decreased (-0.6%) to 57.027% when pulling
73982c78f4on philgyford:fix-html-for-tweet-2 into354e31b914on ryanmcgrath:master.Darn, python 2! I will get that working tomorrow.
Coverage increased (+0.1%) to 57.703% when pulling
2cfdaaf6e4on philgyford:fix-html-for-tweet-2 into354e31b914on ryanmcgrath:master.Coverage increased (+0.1%) to 57.703% when pulling
2cfdaaf6e4on philgyford:fix-html-for-tweet-2 into354e31b914on ryanmcgrath:master.Phew, that's that!