Include details in moderation log when deleting a post
This commit is contained in:
parent
45f549482a
commit
925594c7b1
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…
Reference in New Issue