Fix #5376 - Ensure links have correct ID
This ensures that links to comments have the correct ID (the ID of the Comment object) as well as fixing deletion on reports and fixing a few other little things. I hope this fixes the #5376 issue, though cannot reproduce so unable to confirm.
This commit is contained in:
@@ -69,7 +69,7 @@ def take_punitive_actions(request, form, report, user):
|
||||
if u'delete' in form.action_to_resolve.data and \
|
||||
report.is_comment_report():
|
||||
deleted_comment = report.obj()
|
||||
Session.delete(deleted_comment)
|
||||
deleted_comment.delete()
|
||||
form.resolution_content.data += \
|
||||
_(u"\n{mod} deleted the comment.").format(
|
||||
mod=request.user.username)
|
||||
|
||||
Reference in New Issue
Block a user