Commit Graph

689 Commits

Author SHA1 Message Date
Roardom ad716d7cc3 update: remove XSS cleaner and remove XSS vulnerabilities
We've been mostly relying on the 3rd party xss cleaner to make sure user submitted content is clean. This PR fixes up any leftover holes in the bbcode parser that allow xss vulnerabilities, and as a result, the 3rd party library isn't needed anymore. It cleans responsibly by first, running `htmlspecialchars()` over the content, followed by sanitizing the untrusted urls and whitelisting their protocol.
2025-01-20 02:52:42 +00:00
Roardom d922562f86 update: make bonus point allocation more customizable 2025-01-16 21:40:25 +00:00
HDVinnie 9ea8838cc6 add: prefix option 2025-01-01 16:05:58 -05:00
HDVinnie fc7272bbb1 PHP Style Change (Laravel Pint CI) 2024-12-24 01:59:20 +00:00
HDVinnie 6c17e1c9b6 Merge pull request #4383 from Roardom/monthly-top10
(Add) Monthly top 10
2024-12-17 22:57:47 -05:00
Roardom 3eeeaff2e8 add: monthly top 10 2024-12-16 22:05:45 +00:00
Roardom 97b058872c fix: only show year in similar torrent deletion 2024-12-15 13:21:06 +00:00
Roardom b193302809 fix: sorting on unregistered infohash page take 2
We need to order by the livewire variable, not by the created_at constant.
2024-11-24 22:15:28 +00:00
Roardom 1362c5de32 fix: sorting on unregistered infohash page
Missing required livewire traits.
2024-11-24 12:53:42 +00:00
HDVinnie cabf501fdf Merge pull request #4345 from Roardom/unregistered-torrents 2024-11-18 08:26:33 -05:00
Roardom 18b3735085 add: log unregistered torrents 2024-11-13 09:56:43 +00:00
Roardom 0df4b67c6b fix: searching torrent/request searching by id
Regression from #4309
2024-11-09 22:28:11 +00:00
HDVinnie 8eb1e64cc1 Merge pull request #4300 from Roardom/ansi-db
(Refactor) Use ANSI-compatible syntax for raw database queries
2024-11-03 21:15:37 -05:00
HDVinnie 7f9cd2abcf Merge pull request #4309 from Roardom/search-trait
(Refactor) Move TorrentFilter trait into TorrentSearchFiltersDTO
2024-11-03 21:13:05 -05:00
HDVinnie f6b53100f5 Merge pull request #4307 from Roardom/fix-playlist-sort 2024-11-02 09:37:29 -04:00
HDVinnie 82845cd8c8 Merge pull request #4304 from Roardom/playlist-partial-username-search 2024-11-02 09:34:39 -04:00
Roardom 40c2889613 refactor: move TorrentFilter trait into TorrentSearchFiltersDTO
The trait is only used in the one place (apart from being used in the request search, which it shouldn't have been used for in the first place).
2024-11-02 10:48:09 +00:00
Roardom b0efdad68c fix: playlist sort should be alphabetical
Currently it's z-a. It used to be a-z. Regression from #3844.
2024-11-02 06:09:58 +00:00
Roardom 3592a22587 update: allow searching playlists via partial username 2024-11-02 05:56:07 +00:00
Roardom 0e4bcb570d refactor: use ANSI-compatible syntax for raw database queries 2024-11-02 04:26:49 +00:00
Roardom da0f09c1a5 fix: re-index torrent after being bookmarked
This is already implemented for the bookmark icon button, but not the main button on the torrent page.
2024-11-01 00:26:17 +00:00
Roardom 3b7efe67a9 add: weekly top 10 charts 2024-10-31 10:17:00 +00:00
HDVinnie 161031c157 fix: Invalid value type at page, expected a positive integer, but found a string
- This ensures that the page parameter is correctly cast to an integer before being passed to the Meilisearch API.
2024-10-23 00:13:32 -04:00
HDVinnie 98e31fba77 update: playlist search to use wildcards 2024-10-22 22:00:58 -04:00
Roardom d46690aacc fix: meilisearch torrent search incomplete filter 2024-10-21 12:45:13 +00:00
Roardom 9267dac649 fix: mediainfo and description search
There's no easy way of adding these to meilisearch right now. Indexing them is inefficient and causes multi-second queries. It would be useful to use the `CONTAINS` operator to search these, but that meilisearch feature is still experimental and we should wait until it's stable before using it.
2024-10-20 22:24:59 +00:00
HDVinnie 2cd11b4fb6 Merge pull request #4237 from Roardom/tmdb-rating-sorting
(Update) Allow sorting torrent list by tmdb rating
2024-10-20 17:31:20 -04:00
Roardom 60a909bf33 update: allow sorting torrent list by tmdb rating 2024-10-20 10:01:04 +00:00
Roardom e75de5d546 update: allow editors to use sql searching 2024-10-19 18:43:09 +00:00
Roardom c623f29eea fix: torrents sorted incorrectly when using meilisearch
We need to sort the torrents after they've been fetched from the database to match the same order that meilisearch returned.

Fixes regression from #4236.
2024-10-18 01:53:52 +00:00
Roardom 5b7bf9fd2e update: use meilisearch for torrent search by default
Using scout directly doesn't work because when increasing the maxTotalHits in meilisearch, scout will use the max instead of just fetching the current page. Meilisearch seems to handle a max of 200k torrents fine on its own, with 12ms latency when e.g. filtering by type down to 38000 totalHits. Run `php artisan scout:sync-index-settings`, followed by `php artisan auto:sync_torrents_to_meilisearch` after updating.
2024-10-17 07:21:33 +00:00
HDVinnie c9dc4d6875 Merge pull request #4209 from HDInnovations/AIO-Quickseach
(Refactor) AIO Quicksearch
2024-10-16 08:49:45 -04:00
Roardom ca9b8b056d update: show pruned users by default in user search
More often than not, when users are searched, it is wanted to search pruned users as well.
2024-10-15 09:11:23 +00:00
Jay 928cb77887 Merge branch '8.x.x' into add-torrent-immune-button-to-ui 2024-10-10 14:06:12 +00:00
Jay Sizzla 3a58fc1ef7 Allow staff to set individual history entries to immune 2024-10-10 15:03:23 +01:00
HDVinnie ee8889d0d9 refactor: quicksearch
- refactored from livewire to alpinejs
- this is a crudish draft but is fullly functional
- script should be moved to own alpine component in js dir
- person command and filter is simply a test and works
- fixes long time safari issue when click result just closes search and doesnt direct to URL by following:

@click.prevent Directive: Added @click.prevent="navigateTo(result.url)" to the anchor tag to handle the click event and navigate to the URL.
navigateTo Method: Added a navigateTo method in the quickSearch function to change the window location to the clicked URL.
Event Listener: Updated the init method to add a click event listener that stops propagation and navigates to the URL.
2024-10-07 21:44:04 -04:00
Roardom 3a4dc1a729 fix: claimed requests showing pending
Regresson from #4053.
2024-10-02 09:39:02 +00:00
Roardom 0ffab106e7 add: inactive/active ratio to peer search aggregate
Useful for finding users with frequently crashing clients (presumed to be caused by lack of file space and repeatedly restarting on cron).
2024-09-27 07:05:11 +00:00
HDVinnie 12dc0e8274 Merge pull request #4159 from Roardom/report-status
(Update) Report search usability improvements
2024-09-22 12:24:49 -04:00
HDVinnie e30fd0698d Merge branch '8.x.x' into user-login-stats 2024-09-15 19:24:59 -04:00
HDVinnie 91ffa39cc0 Merge branch '8.x.x' into report-status 2024-09-15 19:24:28 -04:00
HDVinnie 4e63959793 update: warning search 2024-09-15 19:19:40 -04:00
HDVinnie 22d30440c5 update: user search 2024-09-15 19:18:21 -04:00
HDVinnie f5b6e01122 update: ticket search 2024-09-15 19:16:24 -04:00
Roardom 7dd5626c9c add: user login count stats 2024-09-15 15:09:59 +00:00
Roardom 9cebc7f8a8 update: report search usability improvements
After some beta testing, it was suggested to provide more clear labels for `solved` and `snoozed` and also combine them into a single `status` setting.
2024-09-13 05:50:29 +00:00
HDVinnie f9fa241204 PHP Style Change (Laravel Pint CI) 2024-09-05 13:41:08 +00:00
Jay Sizzla f27b24ac37 Add toggle to filter for self assigned tickets 2024-09-05 15:40:06 +02:00
Roardom 4c10b0fdf6 add: peers search filter to find shared sockets
Also fix mysql distinct syntax error that broke grouping by user_session.
2024-09-04 21:36:10 +00:00
HDVinnie 12f0f225d5 Merge pull request #4135 from HDInnovations/Alpine-Components
(Refactor) Alpine components
2024-09-03 21:38:01 -04:00