mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
feat(log action): Show attachment updated
action
This commit is contained in:
parent
f80cad0c6f
commit
3bbf240d75
2 changed files with 11 additions and 2 deletions
|
@ -368,6 +368,15 @@ if (($delete || $mode == 'delete') && !$confirm) {
|
|||
|
||||
if (!$error_msg) {
|
||||
\TorrentPier\Legacy\Post::user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $notify_user);
|
||||
|
||||
if (defined('ATTACHMENT_UPDATED')) {
|
||||
global $log_action;
|
||||
$log_action->mod('mod_topic_attach_updated', [
|
||||
'forum_id' => $forum_id,
|
||||
'topic_id' => $topic_id,
|
||||
'topic_title' => $post_info['topic_title'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
if ($mode == 'newtopic' || $mode == 'reply') {
|
||||
|
|
|
@ -479,14 +479,14 @@ class Attach
|
|||
unlink_attach($row['physical_filename'], MODE_THUMBNAIL);
|
||||
}
|
||||
|
||||
// todo: log action - torrent updated
|
||||
|
||||
//bt
|
||||
if ($this->attachment_extension_list[$actual_element] === TORRENT_EXT && $attachments[$actual_element]['tracker_status']) {
|
||||
Torrent::tracker_unregister($attachment_id);
|
||||
}
|
||||
//bt end
|
||||
|
||||
\define('ATTACHMENT_UPDATED', true);
|
||||
|
||||
// Make sure it is displayed
|
||||
$this->attachment_list[$actual_element] = $this->attach_filename;
|
||||
$this->attachment_comment_list[$actual_element] = $comment;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue