Ghost/ghost
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
..
adapter-manager Deleted typescript config files 2022-08-03 12:49:32 +02:00
api-version-compatibility-service Remove linting as posttest step 2022-07-26 15:26:21 +02:00
bootstrap-socket Pinned dependencies (#15100) 2022-07-26 16:06:00 +02:00
constants Remove linting as posttest step 2022-07-26 15:26:21 +02:00
core Fixed the count endpoint for the Members Comments API 2022-08-03 11:52:08 +01:00
custom-theme-settings-service Tidied up package READMEs 2022-07-25 15:17:12 +02:00
domain-events Deleted typescript config files 2022-08-03 12:49:32 +02:00
email-analytics-provider-mailgun Pinned all dependencies 2022-07-27 08:44:50 +02:00
email-analytics-service Tidied up package READMEs 2022-07-25 15:17:12 +02:00
email-content-generator Pinned dependencies (#15100) 2022-07-26 16:06:00 +02:00
express-dynamic-redirects Tidied up package READMEs 2022-07-25 15:17:12 +02:00
extract-api-key Pinned dependencies (#15100) 2022-07-26 16:06:00 +02:00
job-manager Cleaned up job manager test suit 2022-08-01 16:47:45 +01:00
magic-link Deleted typescript config files 2022-08-03 12:49:32 +02:00
member-analytics-service Tidied up package READMEs 2022-07-25 15:17:12 +02:00
member-events Added members.last_commented_at and last_seen_at update when commenting (#15088) 2022-07-25 17:35:46 +02:00
members-analytics-ingress Tidied up package READMEs 2022-07-25 15:17:12 +02:00
members-api Pinned all dependencies 2022-07-27 08:44:50 +02:00
members-csv Tidied up package READMEs 2022-07-25 15:17:12 +02:00
members-events-service Pinned all dependencies 2022-07-27 08:44:50 +02:00
members-importer Pinned all dependencies 2022-07-27 08:44:50 +02:00
members-ssr Deleted typescript config files 2022-08-03 12:49:32 +02:00
minifier Updated import path for minifier tests 2022-07-27 22:04:39 +02:00
mw-api-version-mismatch Remove linting as posttest step 2022-07-26 15:26:21 +02:00
mw-error-handler Pinned dependencies (#15100) 2022-07-26 16:06:00 +02:00
mw-session-from-token Deleted typescript config files 2022-08-03 12:49:32 +02:00
mw-update-user-last-seen Updated import for mw-update-user-last-seen tests 2022-07-26 15:31:14 +02:00
mw-vhost Updated vhost middleware upstream test 2022-07-27 22:35:38 +02:00
offers Deleted typescript config files 2022-08-03 12:49:32 +02:00
package-json Pinned dependencies (#15100) 2022-07-26 16:06:00 +02:00
payments Tidied up package READMEs 2022-07-25 15:17:12 +02:00
security refactored security.string to be more readable (#15127) 2022-08-02 12:49:17 +01:00
session-service Deleted typescript config files 2022-08-03 12:49:32 +02:00
settings-path-manager Fixed dependencies for settings-path-manager 2022-07-27 08:51:44 +02:00
stripe Moved exception handling for members migrations 2022-07-26 15:13:12 +01:00
update-check-service Pinned all dependencies 2022-07-27 08:44:50 +02:00
verification-trigger Avoided loading newsletter subscription events if threshold is Infinity 2022-08-01 09:23:04 +02:00
version-notifications-data-service Remove linting as posttest step 2022-07-26 15:26:21 +02:00