fix torrent update send notify

This commit is contained in:
xiaomlove
2022-06-16 02:11:46 +08:00
parent 52f5623058
commit 8936580476
+2 -1
View File
@@ -19,7 +19,7 @@ if (!$id)
die(); die();
$res = sql_query("SELECT id, category, owner, filename, save_as, anonymous, picktype, picktime, added, pt_gen FROM torrents WHERE id = ".mysql_real_escape_string($id)); $res = sql_query("SELECT id, category, owner, filename, save_as, anonymous, picktype, picktime, added, pt_gen, banned FROM torrents WHERE id = ".mysql_real_escape_string($id));
$row = mysql_fetch_array($res); $row = mysql_fetch_array($res);
$torrentAddedTimeString = $row['added']; $torrentAddedTimeString = $row['added'];
if (!$row) if (!$row)
@@ -259,6 +259,7 @@ if ($row['banned'] == 'yes' && $row['owner'] == $CURUSER['id']) {
'msg' => nexus_trans('torrent.owner_update_torrent_msg', ['detail_url' => $torrentUrl, 'torrent_name' => $_POST['name']]), 'msg' => nexus_trans('torrent.owner_update_torrent_msg', ['detail_url' => $torrentUrl, 'torrent_name' => $_POST['name']]),
'added' => now(), 'added' => now(),
]); ]);
\Nexus\Database\NexusDB::cache_del("staff_message_count");
} }
$returl = "details.php?id=$id&edited=1"; $returl = "details.php?id=$id&edited=1";