denny / ShinyCMS

ShinyCMS is an open source CMS. This is the Perl version, built with Catalyst and DBIC. (There is also a Ruby on Rails version: www.github.com/denny/ShinyCMS-ruby)
58 stars 24 forks source link

Deleting Post Does Not Delete Associated Comments #16

Closed wbraswell closed 5 years ago

wbraswell commented 10 years ago

I created test comments on one of the demo posts by w1n5t0n, then I used the admin webUI to delete w1n5t0n's post, but I still see my comments exist in the "comment" table in the database.

denny commented 10 years ago

This is mildly tricky to address, because a single discussion can be attached to multiple top-level resources (e.g. a blog post, a forum post, and a shop item). Although there is no UI for doing that easily yet, it is possible :) So, before deleting the discussion and comment threads, we'd need to check that it wasn't attached to anything else.