From e12221fce99402bc503d8845625166de10c8cd2a Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Thu, 16 Jun 2022 01:40:06 +0800 Subject: [PATCH] approval none reset torrent visible & banned --- app/Repositories/TorrentRepository.php | 2 ++ include/constants.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Repositories/TorrentRepository.php b/app/Repositories/TorrentRepository.php index a0e1498f..f10edc6a 100644 --- a/app/Repositories/TorrentRepository.php +++ b/app/Repositories/TorrentRepository.php @@ -492,6 +492,8 @@ class TorrentRepository extends BaseRepository $torrentOperationLog['action_type'] = TorrentOperationLog::ACTION_TYPE_APPROVAL_DENY; } } elseif ($params['approval_status'] == Torrent::APPROVAL_STATUS_NONE) { + $torrentUpdate['banned'] = 'no'; + $torrentUpdate['visible'] = 'yes'; if ($torrent->approval_status != $params['approval_status']) { $torrentOperationLog['action_type'] = TorrentOperationLog::ACTION_TYPE_APPROVAL_NONE; } diff --git a/include/constants.php b/include/constants.php index 902eea38..14f62e18 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@