You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Cawbird doesn't remove QT link when QTing a RTÂ #406
Describe the bug
If someone manually QTed a RT (i.e. copied and pasted the RT URL rather than the original RTed URL) then Cawbird shows the quoted tweet inline and the URL. With normal QTing we only show the quoted tweet inline and remove the URL.
To Reproduce
Steps to reproduce the behavior:
Find a RT on twitter.com and copy the RT URL (i.e. the one with the RTers username, not the original tweet's URL)
Send a tweet with it in
View tweet in timeline
Expected behavior
Tweet should not include the URL (but Twitter provides the quoted tweet content and URLs/tweet IDs won't match, so it might be tricky to identify correctly)
The quoted status ID is the original ID but the quoted link URL is the RT URL. But then is_quote_link() checks the ID in the URL because we pull the quoted_status object.
Activity
IBBoard commentedon Dec 5, 2021
JSON from QT:
JSON from copy and paste URL:
The difference is that the QT JSON references the original tweet and the copy-and-paste-URL JSON references the RT. But otherwise they look the same.
IBBoard commentedon Dec 5, 2021
Ahah! The problem is this block:
The quoted status ID is the original ID but the quoted link URL is the RT URL. But then is_quote_link() checks the ID in the URL because we pull the
quoted_statusobject.Re #406: Fix QT link hiding on RTs