Comment count returns empty, but comments are listed below
This page includes 5 comments, but when I query the API, it returns an empty string.
From the dev tools, here is the request being made to the server:
curl 'https://commento.brunoamaral.eu/api/comment/count' \
-H 'authority: commento.brunoamaral.eu' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36' \
-H 'dnt: 1' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'accept: */*' \
-H 'origin: https://brunoamaral.eu' \
-H 'sec-fetch-site: same-site' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://brunoamaral.eu/post/communication-public-relations-marketing/' \
-H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
--data-raw '{"domain":"brunoamaral.eu","paths":["/post/communication-public-relations-marketing/"]}' \
--compressed
and the result:
{"commentCounts":{},"success":true}
As far as I can tell the implementation is correct, and other threads show the right comment count. https://brunoamaral.eu/post/creating-a-gallery-component-for-the-hugo-static-site-generator/#commento