fix(twitter): handle TweetPreviewDisplay for subscriber-only posts#21957
Open
Jsongcloud wants to merge 4 commits into
Open
fix(twitter): handle TweetPreviewDisplay for subscriber-only posts#21957Jsongcloud wants to merge 4 commits into
Jsongcloud wants to merge 4 commits into
Conversation
Contributor
|
Successfully generated as following: http://localhost:1200/twitter/user/DIYgod - Failed ❌ |
Contributor
|
Successfully generated as following: http://localhost:1200/twitter/user/DIYgod - Failed ❌ |
Contributor
Auto ReviewNo clear rule violations found in the current diff. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Involved Issue / 该 PR 相关 Issue
Close #
Example for the Proposed Route(s) / 路由地址示例
New RSS Route Checklist / 新 RSS 路由检查表
PuppeteerNote / 说明
Fix subscriber-only posts (
TweetPreviewDisplay) not appearing in/twitter/user/:idfeed.The X API returns subscriber-only posts with
__typename: "TweetPreviewDisplay", which has a different structure from regularTweetobjects. The parser silently dropped these entries because the type was not handled.Added a handler in both
web-api/utils.tsandmobile-api/api.ts. The check must occur before thetweet = tweet.tweetreassignment. Preview text is included in the feed with a 🔒 prefix.