Add tag to tweets for replies to self (aka threads)

  • 1
  • Idea
  • Updated 2 years ago
Reason:
The default Twitter timeline hides tweets that are replies to others, but still shows tweets where the author is replying to him/herself (creating a "thread").

To simulate this on NewsBlur, one can hide "reply" tags, but that causes "threads" to be hidden as well. (Some sketchy custom js can do it, but it doesn't fix it for the android/iphone apps.)

Proposal:
I think it would just take the following code (where the category could be anything from "thread" to "reply to self"... not sure if there are character restrictions):

  utils/twitter_fetcher.py (somewhere after the "author" is created, currently line 189):
        if user_tweet['in_reply_to_user_id'] == author['id']:
            categories.add('reply-to-self')
Photo of mogwai

mogwai

  • 8 Posts
  • 0 Reply Likes

Posted 2 years ago

  • 1
Photo of Samuel Clay

Samuel Clay, Official Rep

  • 6514 Posts
  • 1474 Reply Likes
That's a beautiful idea and I'd gladly accept it as a Pull Request. Go ahead and head to https://github.com/samuelclay/NewsBlur/blob/master/utils/twitter_fetcher.py#L181 and edit the file. Github will automatically turn that into a PR that I can then accept. I also love getting additional contributors on the repo.
Photo of mogwai

mogwai

  • 8 Posts
  • 0 Reply Likes
Thanks! Added the pull request now.
(Note: I haven't tested it at all, just going off documentation, so hopefully it works...)