Reply Count Not Updated After Deletion

:speech_balloon: Feedback Title

Reply count remains unchanged after deleting a reply, still showing deleted reply placeholder

:clipboard: Feedback Type

  • :bug: Bug Report (something broken on the forum)
  • :artist_palette: Design/UI Improvement

:bullseye: What’s Your Feedback?

While testing the forum functionality, I discovered a bug related to reply counting:

Steps to Reproduce:

1.Post a reply to any topic

2.Reply count updates from 0 to 1 :white_check_mark:

3.Delete the reply you just posted

4.Reply count still shows 1 :cross_mark: (Expected: should return to 0)

5.Click into the topic, you’ll see a “user deleted comment” placeholder

:camera_with_flash: Screenshots (if applicable)

:thought_balloon: Why Is This Important?

1.Data Inconsistency

•Reply count should reflect the actual number of existing replies

•Current behavior causes mismatch between count and actual content

2.Misleading Users

•Users see “1 reply” and click to view

•But only find a “user deleted comment” placeholder with no actual content

•This creates a poor user experience

3.Compounds Other Issues

•If users accidentally post and immediately delete, topics will permanently show “1 reply” with no actual content

•This is especially problematic in sections like FAQs, where it misleads users into thinking someone has responded

:wrench: Suggested Solution (optional)

Complete Removal After Deletion

•When users delete their own replies, reply count should decrease by 1

•Do not keep “user deleted comment” placeholder

•If reply count becomes 0 after deletion, topic list should show 0

:globe_with_meridians: Browser/Device (for bug reports)

  • Browser: chrome
  • Device: Tablet
  • Operation system: MAC

Thank you for helping us improve the Dify Community! :folded_hands: