QuantumBadger / QuantumBadger/RedReader
Twitter special treatment
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2.7k
- Forks
- 527
- Avg merge
- 20d 10h
- Merged PRs (30d)
- 3
Description
Twitter's mobile site seems to be awful. Most of the time when opening reddit links to twitter, the first page load fails with a "You are not authorised to view these tweets" or "Twitter took too long to respond". Refreshes sometimes fix the issue. I've managed to reproduce this on a desktop by hitting mobile.twitter.com with the User-Agent and X-Requested-With headers set to the same as RedReader. Looking at the network console, the https://api.twitter.com/2/timeline/conversation/$id.json call literally just hangs.
This is undoubtedly a Twitter issue and - if I were to put my tin-foil hat on - is perhaps deliberate to encourage people to use the app rather than the mobile site.
It would be nice if RedReader could work around this by:
- Allowing users to enable desktop UA spoofing and suppressing the
X-Requested-Withheader for Twitter to make the page loads as reliable as they are in a desktop browser
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure when opening Reddit links to Twitter with the RedReader User-Agent and X-Requested-With headers, then compare it with a desktop browser request. Investigate the Twitter link-loading path and determine whether desktop UA spoofing and suppressing X-Requested-With improve reliability. Done means the workaround is user-configurable and the reported Twitter page-load failures are reduced.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100