question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Favorited state in search is always false

See original GitHub issue

I’ve been trying to use the status.favorited variable of a status retrieved by api.search but it was always false. When trying to favorite this tweet it gave me exceptions with a message that that tweet was already favorited. After some help from the discord, I’ve discovered that this is fault on the twitter API itself [1]. My suggestion is to internally cross reference with a user’s favorites to mitigate this.

As a developer, this was not a fun experience and I want to prevent this from happening to others.

[1] https://twittercommunity.com/t/favorited-reports-as-false-even-if-status-is-already-favorited-by-the-user/11145

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Harmon758commented, Dec 28, 2020

Please don’t necro-bump old closed issues.

@thekillgfx That is the same thread that is linked in this issue and that was added to the documentation with https://github.com/tweepy/tweepy/commit/1ab151956ec2874ae0f724ebf97d030f9ca9f5c8, the commit that closed this issue. The relevant Twitter API documentation you’re referencing was also added to Tweepy’s documentation in that commit.

As for Twitter API v2 support, see #1472.

1reaction
Freyja-Folkvangrcommented, Apr 5, 2020

@lg188 I’ve found a workaround for this. for each status, overwrite that status by the same status, but from a different endpoint.

status = api.get_status(status.id)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redux Error: TypeError: state.favorites.concat is not a function
Am I returning the data in a wrong format? I am new to redux and am following a tutorial so I am not...
Read more >
Customize searching in Safari on Mac - Apple Support
Stop showing icons for your favorite websites below the Smart Search field. In the Safari app on your Mac, choose Safari > Settings,...
Read more >
The Lumineers - Sleep On The Floor (Official Video) - YouTube
Check out the official music video for "Sleep On The Floor" by the LumineersCleopatra is the brand new album from The LumineersOrder on...
Read more >
Optimize your site for search engines (for beginners)
Google doesn't accept payment to rank a website higher, or rank websites higher if they advertise on Google. If anyone tells you otherwise,...
Read more >
Why Most Published Research Findings Are False - PMC - NCBI
The probability that a research claim is true may depend on study power and ... likely relationships or searches for only one or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found