mirror of
https://github.com/LemmyNet/lemmy
synced 2024-10-30 15:21:20 +00:00
a3bf2f1cf1
* Automatically resolve report when post/comment is removed (#3850) * Automatically resolve report when post/comment is removed * also handle apub removes * Removing auto-resolve report triggers. * Dont allow creating reports for deleted / removed items. * Running pgformat. * Fixing test. * Addressing PR comments. * Forgot comment report. --------- Co-authored-by: Nutomic <me@nutomic.com>
9 lines
265 B
SQL
9 lines
265 B
SQL
DROP TRIGGER IF EXISTS post_removed_resolve_reports ON mod_remove_post;
|
|
|
|
DROP FUNCTION IF EXISTS post_removed_resolve_reports;
|
|
|
|
DROP TRIGGER IF EXISTS comment_removed_resolve_reports ON mod_remove_comment;
|
|
|
|
DROP FUNCTION IF EXISTS comment_removed_resolve_reports;
|
|
|