Browse Source

Include details in moderation log when deleting a post

shortcut
Trevor Slocum 1 year ago
parent
commit
925594c7b1
  1. 10
      imgboard.php

10
imgboard.php

@ -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) {

Loading…
Cancel
Save