-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Description
Describe the bug
Posts containing lists of popular/trending usernames receive artificially inflated engagement metrics, allowing users to manipulate the platform's recommendation algorithm. The TweetBuilder validation system focuses on technical limits (mention count, character limits) but lacks semantic validation to detect contextually irrelevant mentions used purely for engagement manipulation.
To Reproduce
Steps to reproduce the behavior:
- Create a post with 3-5 mentions of currently trending or high-follower accounts
- Include mentions that have no contextual relevance to the posts content
- Post the post during peak engagement hours
- Observe significantly higher impressions/engagement compared to similar content without popular mentions
Expected behavior
The platform should detect and penalize posts that use irrelevant mentions of popular accounts purely for algorithmic manipulation. Such posts should either be shadowbanned, receive reduced distribution, or trigger additional review.
Screenshots


Platform: Twitter/X web and mobile applications
Affected component: TweetBuilder pipeline (specifically spamChecker and validateEntities functions)
Code analysis based on: Internal TweetBuilder.scala implementation
Additional context
Exists in the posts creation pipeline where:
- spamChecker doesn't analyze mention-to-content relevance
- validateEntities only checks quantity limits, not quality/relevance
- No semantic analysis of whether mentions serve legitimate communicative purpose
- Missing rate limiting for engagement manipulation patterns
Proposed Solution:
Implement contextual relevance validation in the existing pipeline by:
- Adding mention relevance scoring to TweetSpamRequest
- Expanding validateEntities to include semantic analysis
- Implementing specific rate limits for high-profile mention patterns
- Marking low-quality engagement attempts for reduced algorithmic distribution