RSSHub/lib/v2/twitter
Rongrong fc42bebb47
fix(route/twitter): reply URL; threads when excludeReplies=1 (#14330)
Without `legacy.id_str`, reply URLs would be constructed with conversion
IDs, resulting in:
- wrong URLs: pointing to the first tweet in the conversion (thread)
- multiple items with the same guid: each tweet in a conversion (thread)
  had the same URL and thus guid

The bug was caused by the widely used temporary fix (legacy.id_str ||
legacy.conversation_id_str) after Twitter had upgraded their API. Thus,
it is quite easy to fix it:
Refill legacy.id_str using the rest_id that resides in the container of
legacy.

With it fixed, take a step further to include threads when
excludeReplies=1 (simulating the behavior of Twitter Web/App).

Signed-off-by: Rongrong <i@rong.moe>
2024-01-28 00:11:32 +08:00
..
developer-api
web-api fix(route/twitter): reply URL; threads when excludeReplies=1 (#14330) 2024-01-28 00:11:32 +08:00
api-fallback-common.js style(eslint): add eslint-unicorn (#14257) 2024-01-18 20:43:40 +08:00
collection.js style(eslint): add eslint-unicorn (#14257) 2024-01-18 20:43:40 +08:00
followings.js style(eslint): add eslint-unicorn (#14257) 2024-01-18 20:43:40 +08:00
keyword.js
likes.js
list.js style(eslint): add eslint-unicorn (#14257) 2024-01-18 20:43:40 +08:00
maintainer.js
media.js
radar.js
router.js
trends.js
tweet.js
user.js
utils.js fix(route/twitter): readability and RT link (#14289) 2024-01-21 14:14:19 +00:00