Use SubPost.deleted and SubPostComment.status to keep track of whether posts or comments were deleted by the author, a mod, or an admin. Allow mods to undelete content deleted by themselves or other mods, but not to undelete comments deleted by the user or an admin. Allow admins to undelete content deleted by mods or admins. Show the content of a deleted post or comment to the mods/admins to assist them with this decision.
Add tests to exercise the post and comment deletion and undeletion functionality for users, mods and admins.
Use
SubPost.deleted
andSubPostComment.status
to keep track of whether posts or comments were deleted by the author, a mod, or an admin. Allow mods to undelete content deleted by themselves or other mods, but not to undelete comments deleted by the user or an admin. Allow admins to undelete content deleted by mods or admins. Show the content of a deleted post or comment to the mods/admins to assist them with this decision.Add tests to exercise the post and comment deletion and undeletion functionality for users, mods and admins.