Ghost/ghost/core/test/e2e-api/members-comments
Fabien "egg" O'Carroll e6317e9da3 Fixed the count endpoint for the Members Comments API
refs https://github.com/TryGhost/Team/issues/1695

When a post does not have any comments we were not returning any data
from the API, which would cause issues with the comment counts helper
frontend script. This updates the endpoint to always include the count
when explicitly requesting the count for specific posts.

We've also pulled the logic out into a stats service so that the endpoint
can just refer to the controller.
2022-08-03 11:52:08 +01:00
..
__snapshots__ Fixed the count endpoint for the Members Comments API 2022-08-03 11:52:08 +01:00
comments.test.js Fixed the count endpoint for the Members Comments API 2022-08-03 11:52:08 +01:00