passcod / whio

Twitter for superusers
http://whio.website
MIT License
4 stars 0 forks source link

Ability to show context for tweets #48

Open passcod opened 8 years ago

passcod commented 8 years ago

Context is defined here as non-reply tweets or retweets from the same user made just before and just after the viewed tweet.

This should probably be "hidden-until-switched" per view, hidden by default, with a settings toggle to make it shown by default. Rationale: to preserve the habitual view of tweets and threads.

UI would need to be thoughtful around how the context is differentiated from the replies and replied-tos.

Not sure how possible this is with the API.

dequis commented 8 years ago

Not sure how possible this is with the API.

https://dev.twitter.com/rest/reference/get/statuses/user_timeline with max_id should do

$ twurl '/1.1/statuses/user_timeline.json?screen_name=passcod&max_id=675511041992712193&count=3' | jq '.[] | .text'
"@SwiftOnSecurity GODAMMNIT TAY"
"@HalfAiden Smells like a well-timed Confundus charm"
"RT @0xabad1dea: You don’t have a backup until you’ve tried a restore\nYou don’t have a backup until you’ve tried a restore\nYou don https://t…"
passcod commented 8 years ago

Okay, not sure how possible the other side would be. Showing prior tweets is apparently easy. I'm not seeing a min_id parameter, though.