Commit Graph

641 Commits

Author SHA1 Message Date
Roardom 32cf8da4db refactor: split tmdb into movie_id and tv_id
Step 2 in cleaner meta fetching code.
2025-03-16 22:55:24 +00:00
Roardom 1e2b4f8cee update: only include companies/networks with torrents in mediahub 2025-03-16 10:54:27 +00:00
Roardom 8fde78124b refactor: save igdb games to the database
Step 1 towards cleaner meta fetching code.

Users with a game category must run `php artisan fetch:meta` after migration.
2025-03-11 19:48:25 +00:00
Roardom 5a6259cea7 remove: sd content and stream optimized flags
SD content is represented by the resolutions table now instead of this flag. Most people prefer web-dls over stream-optimized encodes these days.
2025-03-09 03:33:32 +00:00
HDVinnie 6e2c8f569d Merge pull request #4492 from Roardom/moderation-status-enum
(Refactor) Use moderation status enum and cast
2025-03-05 06:16:23 -05:00
HDVinnie 8fff964cea Merge pull request #4515 from Roardom/phpstan-fixes
(Fix) Phpstan fixes
2025-03-04 21:48:57 -05:00
Roardom ad8b0da80b fix: phpstan property.phpDoctype
Larastan uses a different doctype for these properties
2025-03-02 07:11:25 +00:00
Roardom 18b8e0bf01 fix: add generics to UserNotification and UserPrivacy docblocks 2025-03-02 07:01:27 +00:00
Roardom b87638e1c2 fix: allow User model instantiation with new User(['id' => $id])
We use this syntax for sending notifications without requerying the database. Also, we don't use $request->all() for anything user-related anymore so we should be safe to allow all attributes to be mass filled.
2025-02-26 19:18:01 +00:00
Roardom a447269552 refactor: use moderation status enum and cast
For consistency and less magic numbers hard coded everywhere.
2025-02-26 14:23:02 +00:00
Roardom b2e29cfcf0 fix: migrate boolean columns to tinyint(1)
These columns were previously tiny ints without the (1) display width or regular ints, or smallints. They should all be tinyint(1).
2025-02-19 06:25:21 +00:00
HDVinnie c48d062a75 Merge pull request #4469 from Roardom/normalize-featured 2025-02-18 10:32:14 -05:00
HDVinnie bc25ffa3be Merge pull request #4465 from Roardom/bbcode-blade-directive 2025-02-13 08:12:37 -05:00
Roardom df9fa5004c fix: normalize torrent featured flag
When the featured flag goes out of sync with the featured_torrents table (for reasons still unknown), the torrent is permanently labeled as freeleech, while 100% of traffic is always credited.
2025-02-10 17:47:12 +00:00
Roardom 6a103cee97 refactor: use laravel notifications for system user private messages 2025-02-02 18:48:27 +00:00
Roardom 047f10be36 add: bbcode and linkify blade directives
Also add escaping content inside joypixels blade directive where necessary.
2025-02-01 16:15:34 +00:00
Roardom 604b7e1937 add: spell check ci
Just an initial portion for now fixing incorrect text and preventing future incorrect text. Eventually, I'd like to fix everything still listed under "ignoredWords" in cspell.json.
2025-01-24 11:30:34 +00:00
HDVinnie 4b212d08ce Merge pull request #4442 from Roardom/fix-markdown-escape
(Fix) HTML inside wikis and pages being escaped
2025-01-20 08:26:04 -05:00
Roardom 23f1fb89f2 fix: html inside wikis and pages being escaped
Staff are trusted and should be allowed to add custom html/styles/scripts to site pages and wikis, as they were before. Regression from #3222.
2025-01-20 10:37:33 +00:00
HDVinnie d474ee3be4 update: php8.4 support
- makes unit3d php8.4 + required
- fixes multiple implicitly to explicit nullable type
- dependency updates
- github action updates
- carbon 2 needs to move to carbon 3 in separate pr
2025-01-20 00:04:35 -05:00
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
HDVinnie 306cd7a3d9 Merge pull request #4337 from Roardom/playlist-last-added
(Update) Save timestamps of when torrents are added to playlists
2025-01-17 00:33:47 -05:00
HDVinnie d63480597a Merge pull request #4406 from Roardom/bon-wage-refactor 2025-01-16 17:06:53 -05:00
Roardom d922562f86 update: make bonus point allocation more customizable 2025-01-16 21:40:25 +00:00
HDVinnie 7fcd4d0133 add: history soft deletes 2025-01-14 12:53:13 -05:00
Roardom 97b058872c fix: only show year in similar torrent deletion 2024-12-15 13:21:06 +00:00
HDVinnie 8a5c9ae43c Merge pull request #4360 from HDInnovations/Request-4353
(Add) Display reports on torrent page
2024-12-01 22:25:20 -05:00
HDVinnie 72dd3c5159 add: display reports on torrent page
- closes request #4353
2024-12-01 22:15:43 -05:00
HDVinnie 192b5ed15d chore: remove unused imports that pint is missing 2024-12-01 20:52:32 -05:00
HDVinnie a56c0cf73d (Add) New torrent moderator group (#4351)
* add: new torrent moderator group

- this group is limited to moderating and editing torrents via is_editor and is_torrent_modo group permissions
2024-11-26 20:17:49 -05: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
HDVinnie 8b481d2d04 Merge pull request #4305 from IonBazan/feature/markdown-entities
(Refactor) Use CommonMark for markdown parsing
2024-11-12 13:24:13 -05:00
Ion Bazan 9d89eaa05f Replace Markdown engine 2024-11-04 12:00:07 +08: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
Roardom 625f20fc15 update: save timestamps of when torrents are added to playlists 2024-11-03 10:51:39 +00: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 0e4bcb570d refactor: use ANSI-compatible syntax for raw database queries 2024-11-02 04:26:49 +00:00
HDVinnie 98b7bad411 add: donation package soft deletes
- fixes #4277
2024-10-31 23:09:35 -04:00
Ion Bazan 87e547b444 Add internal note for staff invitations 2024-10-30 11:14:48 +08:00
Roardom a843a41abc fix: meilisearch playlist search
Requires resyncing meilisearch torrents index.
2024-10-23 19:53:23 +00:00
Roardom 3c7d94d1f0 fix: add torrent trump filtering to meilisearch search
Requires reimporting torrents into meilisearch.
2024-10-20 21:57:20 +00:00
HDVinnie b17e8d927c Merge pull request #4254 from Roardom/fix-collection-search
(Fix) Meilisearch search for collection id
2024-10-20 17:31:44 -04: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
HDVinnie c8662e0348 Merge pull request #4249 from Roardom/bot-bool-active 2024-10-20 09:54:30 -04:00
Roardom 17e0640ad2 fix: meilisearch search for collection id
Requires reimporting torrents into meilisearch.
2024-10-20 13:50:40 +00:00
Roardom e4ac5caa30 fix: use bool for bot active instead of int
Also update docblocks. Related: #4085.
2024-10-20 10:26:00 +00:00
Roardom 69d1bb47c1 fix: use bool for rss is_private instead of int 2024-10-20 10:14:28 +00:00
Roardom 60a909bf33 update: allow sorting torrent list by tmdb rating 2024-10-20 10:01:04 +00:00