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

@@ -57,7 +57,7 @@ class TorrentOperationLog extends NexusModel
$subject = nexus_trans("torrent.operation_log.$actionType.notify_subject", [], $locale);
$msg = nexus_trans("torrent.operation_log.$actionType.notify_msg", [
'torrent_name' => $torrentOperationLog->torrent->name,
'detail_url' => sprintf('%s/details.php?id=%s', getSchemeAndHttpHost(), $torrentOperationLog->torrent_id),
'detail_url' => sprintf('details.php?id=%s', $torrentOperationLog->torrent_id),
'operator' => $torrentOperationLog->user->username,
'reason' => $torrentOperationLog->comment,
], $locale);
@@ -70,5 +70,6 @@ class TorrentOperationLog extends NexusModel
];
Message::query()->insert($message);
NexusDB::cache_del("user_{$receiver->id}_unread_message_count");
NexusDB::cache_del("user_{$receiver->id}_inbox_count");
}
}