legacy-api-documentation icon indicating copy to clipboard operation
legacy-api-documentation copied to clipboard

GET photos : Some photos return an invalid comment count.

Open monsieurmechant opened this issue 8 years ago • 1 comments

As the title states, when I call the 'photos' resource, some/most photos return an invalid comment_count

Example call : GET https://api.500px.com/v1/photos?feature=user&user_id=14634089&sort=created_at

The first photo returns a comment_count of 22

"photos":  [
     {
      "id": 201788617,
      "user_id": 14634089,
      […]
      "comments_count": 22, 
     }
]

Whereas it actually only has 18 comments. And calling the /photos/:id/comments endpoint returns the proper count.

GET https://api.500px.com/v1/photos/201788617/comments

{
  "media_type": "photo",
  "current_page": 1,
  "total_pages": 1,
  "total_items": 18,
  "comments":  […]
}

The number of extra comments in comment_count does not seem consistent either.

monsieurmechant avatar Mar 10 '17 21:03 monsieurmechant

Hey, thanks for reporting this. We've put a task to fix this soon. When we do, I'll update this issue and inform you.

makramkd avatar Mar 11 '17 01:03 makramkd