Include details in moderation log when deleting a post

This commit is contained in:
Trevor Slocum 2021-05-01 09:21:22 -07:00
parent 45f549482a
commit 925594c7b1
1 changed files with 9 additions and 1 deletions

View File

@ -1001,7 +1001,15 @@ EOF;
rebuildThread($post['parent']);
}
manageLogAction(__('Deleted') . ' >>' . $post['id']);
$action = sprintf(__('Deleted %s'),'>>' . $post['id']) . ' - ' . hashData($post['ip']);
if ($post['text'] != '') {
$stripped = strip_tags($post['text']);
$action .= ' - ' . htmlentities(substr($stripped, 0, 32));
if (strlen($stripped) > 32) {
$action .= '...';
}
}
manageLogAction($action);
}
rebuildIndexes();
if (count($post_ids) == 1) {