diff --git a/public/medal.php b/public/medal.php index 3b548fd7..6881c45d 100644 --- a/public/medal.php +++ b/public/medal.php @@ -1,6 +1,7 @@ where('display_on_medal_page', 1); $q = htmlspecialchars($_REQUEST['q'] ?? ''); if (!empty($q)) { diff --git a/public/torrentrss.php b/public/torrentrss.php index 54808999..b1627673 100644 --- a/public/torrentrss.php +++ b/public/torrentrss.php @@ -126,7 +126,10 @@ if (!empty($_GET['sort']) && $_GET['sort'] == 'newest') { //$query = "SELECT torrents.id, torrents.category, torrents.name, torrents.small_descr, torrents.descr, torrents.info_hash, torrents.size, torrents.added, torrents.anonymous, users.username AS username, categories.id AS cat_id, categories.name AS cat_name FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id $where ORDER BY $sort LIMIT $limit"; $query = "SELECT torrents.id, torrents.category, torrents.name, torrents.small_descr, torrents.descr, torrents.info_hash, torrents.size, torrents.added, torrents.anonymous, torrents.owner, categories.name AS category_name FROM torrents LEFT JOIN categories ON category = categories.id $where ORDER BY $sort LIMIT $limit"; $list = \Nexus\Database\NexusDB::select($query); -$list = apply_filter('torrent_list', $list, $startindex == 0 ? 0 : 1, null, $_GET['search'] ?? ''); +if ($inclbookmarked == 0) { + $list = apply_filter('torrent_list', $list, $startindex == 0 ? 0 : 1, null, $_GET['search'] ?? ''); +} + //dd($list); $torrentRep = new \App\Repositories\TorrentRepository(); $url = get_protocol_prefix().$BASEURL;