mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
e6317e9da3
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. |
||
---|---|---|
.. | ||
e2e-api | ||
e2e-browser | ||
e2e-frontend | ||
e2e-server | ||
e2e-webhooks | ||
integration | ||
regression | ||
unit | ||
utils | ||
.eslintignore | ||
.eslintrc.js |