add topic reply notice

This commit is contained in:
xiaomlove
2022-06-18 13:16:36 +08:00
parent c7b75b8349
commit 88a92f745d
9 changed files with 107 additions and 4 deletions

View File

@@ -252,7 +252,7 @@ $searchRep = new \App\Repositories\SearchRepository();
$searchRep->updateTorrent($id);
if ($affectedRows == 1 && $row['banned'] == 'yes' && $row['owner'] == $CURUSER['id']) {
$torrentUrl = sprintf('%s/details.php?id=%s', getSchemeAndHttpHost(), $row['id']);
$torrentUrl = sprintf('details.php?id=%s', $row['id']);
\App\Models\StaffMessage::query()->insert([
'sender' => $CURUSER['id'],
'subject' => nexus_trans('torrent.owner_update_torrent_subject', ['detail_url' => $torrentUrl, 'torrent_name' => $_POST['name']]),
@@ -260,6 +260,7 @@ if ($affectedRows == 1 && $row['banned'] == 'yes' && $row['owner'] == $CURUSER['
'added' => now(),
]);
\Nexus\Database\NexusDB::cache_del("staff_new_message_count");
\Nexus\Database\NexusDB::cache_del("staff_message_count");
}
$returl = "details.php?id=$id&edited=1";