approval none reset torrent visible & banned

This commit is contained in:
xiaomlove
2022-06-16 01:40:06 +08:00
parent 7247becc60
commit e12221fce9
2 changed files with 3 additions and 1 deletions

View File

@@ -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;
}