Favorited field sometimes erroneously False, and bug allows a tweet to be double-favorited


#1

This issue is intermittent.

Here is an example of a status with the bug though. The “favorited” field remains False even though “favorite_count” has been incremented from 0 to 1.

The authenticating user id is 288424828, and that’s the same user id that created the favorite.

/1.1/statuses/show.json?id=561507219049820161

{“created_at”:“Sat Jan 31 12:52:07 +0000 2015”,“id”:561507219049820161,“id_str”:“561507219049820161”,“text”:“Kettlebell Deadlift. #deadlift #hamstrings #glutes #legs #fitness #kettlebells #fitwomen #leader #trainer http://t.co/Z2uFtr8SUW",“source”:"\u003ca href=“http://instagram.com” rel=“nofollow”\u003eInstagram\u003c/a\u003e”,“truncated”:false,“in_reply_to_status_id”:null,“in_reply_to_status_id_str”:null,“in_reply_to_user_id”:null,“in_reply_to_user_id_str”:null,“in_reply_to_screen_name”:null,“user”:{“id”:2154043597,“id_str”:“2154043597”,“name”:“Sweaty Glam Girl”,“screen_name”:“sweatyglamgirl”,“location”:“NY and Anywhere YOU Are”,“profile_location”:null,“description”:“Fitness Coach/Fitness Model: Adyana de la Torre. Seen in #workout videos —Brazil Butt Lift, Blood Type Workout, Urban Rebounding Extreme and more.”,“url”:“http://t.co/nvjSjvF2T3",“entities”:{“url”:{“urls”:[{“url”:“http://t.co/nvjSjvF2T3”,“expanded_url”:“http://www.sweatglamgirl.tumblr.com”,“display_url”:“sweatglamgirl.tumblr.com”,“indices”:[0,22]}]},“description”:{“urls”:[]}},“protected”:false,“followers_count”:206,“friends_count”:483,“listed_count”:0,“created_at”:"Fri Oct 25 02:52:37 +0000 2013”,“favourites_count”:137,“utc_offset”:null,“time_zone”:null,“geo_enabled”:true,“verified”:false,“statuses_count”:525,“lang”:“en”,“contributors_enabled”:false,“is_translator”:false,“is_translation_enabled”:false,“profile_background_color”:“C0DEED”,“profile_background_image_url”:“http://abs.twimg.com/images/themes/theme1/bg.png",“profile_background_image_url_https”:“https://abs.twimg.com/images/themes/theme1/bg.png”,“profile_background_tile”:false,“profile_image_url”:“http://pbs.twimg.com/profile_images/491705721310818304/omsLA5_P_normal.jpeg”,“profile_image_url_https”:“https://pbs.twimg.com/profile_images/491705721310818304/omsLA5_P_normal.jpeg”,“profile_banner_url”:“https://pbs.twimg.com/profile_banners/2154043597/1402624901”,“profile_link_color”:“0084B4”,“profile_sidebar_border_color”:“C0DEED”,“profile_sidebar_fill_color”:“DDEEF6”,“profile_text_color”:“333333”,“profile_use_background_image”:true,“default_profile”:true,“default_profile_image”:false,“following”:false,“follow_request_sent”:false,“notifications”:false},“geo”:null,“coordinates”:null,“place”:null,“contributors”:null,“retweet_count”:0,“favorite_count”:1,“entities”:{“hashtags”:[{“text”:“deadlift”,“indices”:[21,30]},{“text”:“hamstrings”,“indices”:[31,42]},{“text”:“glutes”,“indices”:[43,50]},{“text”:“legs”,“indices”:[51,56]},{“text”:“fitness”,“indices”:[57,65]},{“text”:“kettlebells”,“indices”:[66,78]},{“text”:“fitwomen”,“indices”:[79,88]},{“text”:“leader”,“indices”:[89,96]},{“text”:“trainer”,“indices”:[97,105]}],“symbols”:[],“user_mentions”:[],“urls”:[{“url”:“http://t.co/Z2uFtr8SUW”,“expanded_url”:“http://instagram.com/p/yhNyPuis7X/”,“display_url”:“instagram.com/p/yhNyPuis7X/”,“indices”:[106,128]}]},“favorited”:false,“retweeted”:false,“possibly_sensitive”:false,“possibly_sensitive_appealable”:false,“lang”:"en”}


#2

Once this bug happens on a tweet, it appears to be stuck. The 561507219049820161 tweet above still has this problem days later.


#3

I just noticed there’s something else broken here. The actual https://twitter.com/sweatyglamgirl/status/561507219049820161 web page has the “Favorite” star grey. So this bug isn’t limited purely to the API. The bug is deeper than that, at some layer that also impacts the website.


#4

Is there a better place to report this bug? Doesn’t seem to have gotten any notice.


#5

Also, I don’t think I’ve ever seen this bug happen when favorite-ing via the twitter.com website. It only seems to happen (perhaps 10% of the time?) when the favorite is done via the API.


#6

So I figured I’d try re-favoriting via the twitter website one of the tweets that had this bug. Turns out it really worked, I’ve now double-favorited this tweet: https://twitter.com/MaggieRogo/status/570932421870428160

It now lists the tweet as having 6 favorites instead of 5. And after doing so it now erroneously says “1 user has asked not to be shown in this view.” But that message is incorrect as well - it’s presumably reacting brokenly to the other bug.


#7

Looking at a bigger sample size, this happens on about 4% of tweets (not 10% as previously estimated). I haven’t done anything yet on the 561507219049820161 tweet, and it’s still in this broken state 4 months later.