Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET photos : Some photos return an invalid comment count. #222

Open
monsieurmechant opened this issue Mar 10, 2017 · 1 comment
Open

GET photos : Some photos return an invalid comment count. #222

monsieurmechant opened this issue Mar 10, 2017 · 1 comment

Comments

@monsieurmechant
Copy link

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.

@makramkd
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants