flarum / issue-archive

0 stars 0 forks source link

Wrong discussionCount in API/tags #23

Open justoverclockl opened 3 years ago

justoverclockl commented 3 years ago

For some reason, i see a wrong discussionCount in tags api.

Example: https://flarum.it/t/feedback => 5 discussion

API endpoint:

{
      "type": "tags",
      "id": "6",
      "attributes": {
        "name": "Feedback",
        "description": "Per proporre o discutere su nuove feauture per Flarum o il suo design. Per problemi utilizza il tag Supporto.",
        "slug": "feedback",
        "color": "#a945ba",
        "backgroundUrl": null,
        "backgroundMode": null,
        "icon": "fas fa-comment-dots",
        "discussionCount": 3,
        "position": 2,
        "defaultSort": null,
        "isChild": false,
        "isHidden": false,
        "lastPostedAt": "2021-10-13T20:46:29+00:00",
        "canStartDiscussion": true,
        "canAddToDiscussion": true,
        "isRestricted": false,
        "isQnA": true,
        "reminders": true
      }