Commit Graph

252 Commits

Author SHA1 Message Date
HDVinnie
1bd9fbab12 revert: #4131 2024-09-05 08:23:28 -04:00
HDVinnie
70c0a3e2ad Merge pull request #4143 from Roardom/fix-genre-array-string
(Fix) Genres array should be string
2024-09-04 22:37:48 -04:00
Roardom
a2d0e69428 fix: genres array should be string
Ideally should be array... but then when it exists it should be array too... and it should only be changed on a major release.
2024-09-05 02:25:17 +00:00
Roardom
49d4ece261 fix: null coalesce if torrent is missing category/type/resolution
If the torrent does not have an assigned category, type, or resolution, return a null category_id, type_id, and/or resolution_id from the api.
2024-09-05 01:05:46 +00:00
HDVinnie
12f0f225d5 Merge pull request #4135 from HDInnovations/Alpine-Components
(Refactor) Alpine components
2024-09-03 21:38:01 -04:00
HDVinnie
c51a937369 PHP Style Change (Laravel Pint CI) 2024-09-04 01:29:53 +00:00
HDVinnie
489c9d53b1 cleanup: post like and dislike logic 2024-09-02 23:47:14 -04:00
HDVinnie
33b2144419 refactor: alpinejs components
- this pr cleans up the app.js file and pulls all alpine logic into there own component js files making it much more organized and modular.
- this pr also converts the livewire post like and dislike buttons to alpinejs. this was done due to nesting components in livewire being bugged.
2024-09-02 22:38:18 -04:00
Roardom
cbcf34f29b update: don't query database in filter api
Better database performance using raw pagination since it doesn't have to run the data through eloquent resources (bad when there's thousands of TorrentFiles) or query the database to count the count of torrents inside the database for the total item count.
2024-09-02 10:03:38 +00:00
HDVinnie
4d863b7c89 Merge branch '8.x.x' into pr/4029 2024-08-26 20:15:35 -04:00
HDVinnie
931c99c690 Merge pull request #4083 from Roardom/system-user-id
(Update) Use system user id constant in more places
2024-08-26 16:51:18 -04:00
Roardom
5a9ae37921 update: use system user id constant in more places 2024-08-26 09:28:44 +00:00
Roardom
d1465ae390 remove: unused category num_torrents column 2024-08-25 14:14:24 +00:00
HDVinnie
1087dff233 Merge branch '8.x.x' into meilisearch-3 2024-08-18 01:19:43 -04:00
Roardom
dd538f73b0 fix: use the "all" matching strategy in meilisearch
Resembles the sql search better.
2024-08-12 11:58:50 +00:00
Roardom
73da1a1eb3 add: types to chat repository
Just absolute minimal changes for now to prevent breakage as much as possible.
2024-08-10 03:15:36 +00:00
Roardom
64a60089d9 refactor: treat sprintf as native function
This breaks the pint CI currently. This is probably due to the next version of php (8.4) adding opcache optimizations to sprintf and our config requiring pre-slashing native functions.
2024-08-09 21:08:26 +00:00
Roardom
fa35e4e5c0 add: use meilisearch to search torrents 2024-08-06 02:15:25 +00:00
Roardom
2e91e1157f fix: some user group permissions
These permissions were never meant to be directly edited by staff. They should never have been added to the staff user edit page as it just caused confusion when the settings reset at the daily group change. I've now added these settings to the group directly and allow the settings on the user edit page to override the group settings. I refrained from fixing the can_download permission for now, because so many different things affect it and it will need at 3 separate permissions to control everything it does. Trying to fix it will take much more effort than what can be fixed today. Because of this, I removed the setting from the user edit page to reduce confusion from staff who don't realize it is controlled by the scheduler. Relevant issue: #1820.
2024-07-26 22:35:45 +00:00
Roardom
d8f10b40da fix: small bookmark button again again
Goodbye livewire. Livewire's diffing algorithm kept messing up this livewire component.
2024-07-22 05:02:17 +00:00
Roardom
4b3b864fa4 refactor: use DTO to modularize torrent searching 2024-07-12 14:40:27 +00:00
HDVinnie
9cbeb30ad1 revert: chat changes 2024-06-23 13:05:24 -04:00
HDVinnie
1a934c2912 fix: phpstan errors 2024-06-21 11:39:48 -04:00
HDVinnie
eddad86406 fix: phpstan errors
- this commit tackles more phpstan errors from the baseline.
- the 2024_06_19_210338_update_colum_types.php migration will have more added to it. This PR is draft until more baaseline errors are closed.
2024-06-19 21:19:02 -04:00
HDVinnie
c4cd52e23b fix: multiple bugs
- adds laravel 11 casts support to phpstan https://github.com/larastan/larastan/blob/2.x/UPGRADE.md#upgrading-to-296-from-295
- fixes multiple bugs found by phpstan
- removes dead code in torrent filter trait
- ignores three new files in phpstan.neon temp until debugged for timeouts
2024-06-19 13:43:59 -04:00
HDVinnie
2378a9f977 add: soft deletes to torrents
- this adds laravel's soft deletes functionality to torrents.
2024-06-13 20:58:19 -04:00
Roardom
7027c4a2c5 fix: use setAttribute() to set custom model propeties 2024-06-05 11:23:59 +00:00
Roardom
12903f64ac fix: strict type issues
Don't pass null into functions that don't accept null.
2024-05-23 17:40:16 +00:00
Roardom
2e57262e97 fix: strict types phpstan errors 2024-05-23 15:38:35 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
7a71cc7935 refactor: simplify echo/audible creation logic
Refactor the code to be more idiomatic code.
2024-05-01 08:26:09 +00:00
Roardom
d59ef3ba8d remove: unused action from chat controller 2024-05-01 05:48:59 +00:00
Roardom
837441d34e refactor: simplify chatroom get echoes/audibles exist condition 2024-05-01 05:48:59 +00:00
Roardom
d32ae88e86 remove: casino/trivia/bet bots
These bots don't currently do anything. Exception: the casino bot accepts donations through a nerdbot command but doesn't currently do anything else with it. If any trivia/casino/bet features need to be brought back, it would be easy enough to view the old code through the git history, but there's probably a bunch that can be improved with its interface as well.
2024-04-30 07:41:27 +00:00
HDVinnie
bd54a2334d fix: carbon issues 2024-04-24 10:15:54 -04:00
Roardom
9d8621fc3c fix: ci
`featured` is both an attribute and a relation. Using `getAttribute`, we always prioritize the attribute, which seems to satisfy CI.
2024-04-20 02:24:39 +00:00
Roardom
11ef47ca09 fix: refresh the torrent before sending to external tracker
We need to populate the status, seeders, leechers, and times_completed fields.
2024-04-20 01:47:32 +00:00
Roardom
899f121e6f fix: add/remove featured torrents to external tracker 2024-04-19 14:29:50 +00:00
Roardom
f61364f803 fix: add torrents to external tracker immediately
Otherwise, we get errors when deleting pending torrents.
2024-04-19 13:39:43 +00:00
HDVinnie
c5d7859dd8 fix: #3724
- closes #3724
2024-04-07 21:03:50 -04:00
HDVinnie
d5b03b55fe refactor: meta scoping
- removes duplicate code into a single usable trait
2024-03-19 13:39:24 -04:00
HDVinnie
a87887734d add: #3665 2024-03-14 12:33:33 -04:00
Jay Sizzla
c59d3957e6 Add refundable to API for post and get requests 2024-03-06 07:27:59 +00:00
HDVinnie
ed7f17720a update: ChatController 2024-02-23 20:54:26 -05:00
HDVinnie
221b9e4dee remove: joypixel emojis 2024-02-22 17:44:53 -05:00
Roardom
5e6eeadc61 fix: case insensitivity duplicate checking in keyword upsert
We were deduping keywords, but we were only checking for exact duplicates. Now we check for case insensitive duplicates, and make sure to update the duplicates on upsert instead of treating the upsert as an insert. Fixes #3412.
2024-01-24 04:51:38 +00:00
Roardom
5c57979d4a add: adult filter to advanced torrent search 2024-01-22 09:54:01 +00:00
Roardom
29b16a1e2f fix: missing mediainfo returning empty string instead of null 2024-01-16 02:26:42 +00:00
Roardom
575729e805 fix: larastan errors in Helpers\TorrentTools.php 2024-01-03 03:21:46 +00:00
Roardom
5fd8ac8733 update: enforce max torrents per page 2024-01-01 17:06:03 +00:00