debirdify icon indicating copy to clipboard operation
debirdify copied to clipboard

Expand t.co links in spurious results

Open pruvisto opened this issue 3 years ago • 2 comments

pruvisto avatar Nov 07 '22 11:11 pruvisto

I think I found an example of this bug.

The plain text of Twitter user "@brewster_kahle"'s bio says mastodon: @[email protected]

Twitter seems to encode that as mastodon: @brewsterkahle@mastodon.<a href="https://t.co/7ojy915Rea"><span>http://</span>archive.org</a>

Debirdify misinterprets the account as [email protected] instead of @[email protected]

anirvan avatar Nov 13 '22 05:11 anirvan

I can confirm this, it makes some profile appear in spurious results and not be properly picked up.

For example, the HTML is:

<a dir="ltr" href="https://t.co/FQB2mjmfqn" rel="noopener noreferrer nofollow" target="_blank" role="link" class="css-4rbku5 css-18t94o4 css-901oao css-16my406 r-1cvl2hr r-1loqt21 r-poiln3 r-bcqeeo r-qvutc0">
  <span aria-hidden="true" class="css-901oao css-16my406 r-poiln3 r-hiw28u r-qvk6io r-bcqeeo r-qvutc0">http://</span>
  oisaur.com/@yoanmalie
</a>

Debirdify does not detect this profile properly

renchap avatar Nov 23 '22 12:11 renchap