This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Cawbird doesn't remove QT link when QTing a RT #406
Labels
bug
Something isn't working
Comments
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. --- <unnamed>
+++ <unnamed>
@@ -1,12 +1,12 @@
{
- "created_at" : "Sun Dec 05 20:28:25 +0000 2021",
- "id" : 1467591711576793093,
- "id_str" : "1467591711576793093",
- "full_text" : "Test https://t.co/lL3yJWduZA",
+ "created_at" : "Sun Dec 05 20:29:01 +0000 2021",
+ "id" : 1467591865147039749,
+ "id_str" : "1467591865147039749",
+ "full_text" : "Test by pasting URL\n\nhttps://t.co/hnQDTgsDV7",
"truncated" : false,
"display_text_range" : [
0,
- 4
+ 44
],
"entities" : {
"hashtags" : [],
@@ -14,12 +14,12 @@
"user_mentions" : [],
"urls" : [
{
- "url" : "https://t.co/lL3yJWduZA",
- "expanded_url" : "https://twitter.com/IBBoard/status/1467563570808434699",
- "display_url" : "twitter.com/IBBoard/status…",
+ "url" : "https://t.co/hnQDTgsDV7",
+ "expanded_url" : "https://twitter.com/IBBTwtr/status/1467591650994274315",
+ "display_url" : "twitter.com/IBBTwtr/status…",
"indices" : [
- 5,
- 28
+ 21,
+ 44
]
}
]
@@ -100,9 +100,9 @@
"quoted_status_id" : 1467563570808434699,
"quoted_status_id_str" : "1467563570808434699",
"quoted_status_permalink" : {
- "url" : "https://t.co/lL3yJWduZA",
- "expanded" : "https://twitter.com/IBBoard/status/1467563570808434699",
- "display" : "twitter.com/IBBoard/status…"
+ "url" : "https://t.co/hnQDTgsDV7",
+ "expanded" : "https://twitter.com/IBBTwtr/status/1467591650994274315",
+ "display" : "twitter.com/IBBTwtr/status…"
},
"quoted_status" : {
"created_at" : "Sun Dec 05 18:36:35 +0000 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 |
IBBoard
added a commit
that referenced
this issue
Feb 3, 2022
We weren't setting the magic "quote tweet URL" property!
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
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)
Screenshots
https://twitter.com/IBBoard/status/1451822659889778692
System details:
The text was updated successfully, but these errors were encountered: