1
0
mirror of https://github.com/torrentpier/torrentpier.git synced 2025-03-12 04:35:42 -07:00

feat: Used TORRENT_MIMETYPE constant instead of hardcoded string ()

This commit is contained in:
Roman Kelesidis 2025-01-15 13:33:42 +03:00 committed by GitHub
parent 1122c603dd
commit 4b0d270c89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
dl.php

@ -161,7 +161,7 @@ if (!$authorised) {
$datastore->rm('cat_forums');
// Check tor status
if (!IS_AM && str_contains($attachment['mimetype'], 'bittorrent')) {
if (!IS_AM && ($attachment['mimetype'] === TORRENT_MIMETYPE)) {
$sql = 'SELECT tor_status, poster_id FROM ' . BB_BT_TORRENTS . ' WHERE attach_id = ' . (int)$attachment['attach_id'];
if (!($result = DB()->sql_query($sql))) {