Onimua
Well-known member
There doesn't seem to be a way to remove reported items from the front end, but there also doesn't seem to be a quick way to delete items via code either (similar to XenForo_Model_DeletionLog::removeDeletionLog and XenForo_Model_ModerationQueue::deleteFromModerationQueue), is that the case?
Essentially I'm looking to deleted information from xf_report and xf_report_comment if the content is no longer available (hard-deleted from the database), unless there's a specific reason it's not recommended. I could do it via query (fetch report_id from xf_report, then delete records from xf_report_comment using the id) but I wanted to be sure I didn't miss an existing method first. If I do, do I need to be aware of any caches that should be rebuilt after?
Essentially I'm looking to deleted information from xf_report and xf_report_comment if the content is no longer available (hard-deleted from the database), unless there's a specific reason it's not recommended. I could do it via query (fetch report_id from xf_report, then delete records from xf_report_comment using the id) but I wanted to be sure I didn't miss an existing method first. If I do, do I need to be aware of any caches that should be rebuilt after?