Commit Graph

716 Commits

Author SHA1 Message Date
Roardom 0cb58d4211 refactor: use form request for storing application 2024-06-08 00:48:32 +00:00
Roardom cdb063d8e0 add: private message threads 2024-06-07 20:47:36 +00:00
Roardom 02adfdc8b5 add: user setting to disable torrent search autofocus 2024-06-04 12:08:37 +00:00
Roardom d66f84dc4a update: allow saving default torrent sort column
After 10+ hours of debugging and searching through livewire issues, it turns out that the query string doesn't update if you have `history: true` in the `#[Url()]` attribute.
2024-06-01 11:37:15 +00:00
Roardom b027fb1e69 fix: various wishlist issues
- Add stricter validation
- Fix `tv_id` field
- Add index to `tv_id` column
- Cast input to integer
2024-05-27 08:47:47 +00:00
HDVinnie 60b20974a3 Merge pull request #3872 from Roardom/normalize-user-settings
(Update) Normalize user settings
2024-05-26 15:24:38 -04:00
HDVinnie 18e4e5133d Merge pull request #3871 from Roardom/remove-peer-hidden-stat-hidden
(Remove) Unused columns on users table
2024-05-26 15:18:03 -04:00
HDVinnie e8883c132a PHP Style Change (Laravel Pint CI) 2024-05-26 19:17:19 +00:00
HDVinnie 1f702a2d37 Merge pull request #3863 from Roardom/title-subscribe
(Refactor) Wishlist and add movie/tv subscriptions
2024-05-26 15:13:22 -04:00
Roardom d00475778b update: normalize user settings
Use a 1-1 relation. Cache it indefinitely to reduce queries for every http request. This will make it much easier to add additional user settings for various site features without sacrificing clean code or performance.
2024-05-26 10:42:00 +00:00
Roardom 683ba9077a remove: unused columns on users table 2024-05-26 04:40:57 +00:00
Roardom 0df196f077 refactor: wishlist and add movie/tv subscriptions
closes #3826
2024-05-24 11:38:06 +00:00
Roardom b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom 0d6618e87c fix: use query builder instead of eloquent 2024-05-19 03:45:34 +00:00
HDVinnie 08abf6d8ca add: request #3692
- closes #3692
2024-05-07 20:21:27 -04: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 b3b04f63ec update: mysql-schema.sql 2024-04-23 17:10:12 -04:00
HDVinnie 1420eb454c remove: deprecated methods and dbal 2024-04-23 16:35:06 -04:00
HDVinnie b9e0094458 chore: pint 2024-03-25 22:42:08 -04:00
Jay Sizzla 160bb26c8b Add perks to the groups requirements view 2024-03-21 16:27:41 +01:00
HDVinnie 9bad821ebb update: schema dump 2024-03-21 01:03:19 -04:00
HDVinnie 25eab6891e add: #3639
- closes #3639
2024-03-20 09:03:28 -04:00
HDVinnie 4cb85788a9 chore: license 2024-03-19 18:01:57 -04:00
HDVinnie 93b17f0419 chore: license 2024-03-19 17:56:44 -04:00
HDVinnie 76076de04c fix: ForumPermissionsTableSeeder.php 2024-03-10 10:20:20 -04:00
HDVinnie 2e27d62781 Merge pull request #3624 from Roardom/optimize-home-page
(Optimize) Home page
2024-03-06 18:35:49 -05:00
Roardom d879542bee update: optimize home page queries
The index on the torrents table makes two 2-second queries negligible. The order by id desc makes one of the 2 second query negligible. The explicit select on the torrents table halves the time of the other 4 of the 5 queries.
2024-03-06 16:44:41 +00:00
Roardom eda5f28d4c update: set default topic state filter per forum
Useful for forums dedicated to fixing bugs or adding suggestions. This way, topics can be closed when bugs are fixed or suggestions are implemented, and opening the forum only shows relevant bugs/suggestions by default. Topics with different states can be accessed by changing the filter back to `Any`.
2024-03-06 12:02:23 +00:00
HDVinnie f9af3c8912 Merge pull request #3596 from Roardom/seeders-no-overwrite
(Update) Don't overwrite existing data in seeders
2024-03-03 14:01:08 -05:00
Roardom 823af55a9a update: don't overwrite existing data in seeders 2024-03-03 08:52:44 +00:00
HDVinnie f279908c9b Merge pull request #3551 from Roardom/normalize-gifts 2024-03-02 10:09:51 -05:00
Roardom f2dbdd324c fix: whitelisted image url domain matching
Use wildcards on the full url instead of just the hostname.
2024-02-28 22:54:47 +00:00
Roardom 98c32a38f3 update: remove request bon transactions
This data is already stored in the requests and bounty tables. At this point, the name and comment fields are duplicates of each other and don't need to both be kept.
2024-02-26 09:33:33 +00:00
Roardom a37f414145 update: normalize post tips and torrent tips 2024-02-26 09:33:32 +00:00
Roardom 537ad1e831 refactor: normalize user gifts 2024-02-26 09:33:08 +00:00
Roardom 829101f093 add: bbcode image domain whitelist 2024-02-26 09:11:59 +00:00
Roardom 580da7022d refactor: rename permissions to forum_permissions 2024-02-25 00:19:04 +00:00
Roardom c3c95c2d41 update: allow users to be part of multiple internal groups 2024-02-23 23:57:12 +00:00
HDVinnie a23464104e Merge pull request #3550 from Roardom/fix-floats-migration
(Fix) Use the same amount of precision as before on transactions
2024-02-22 09:00:35 -05:00
Roardom 5d2765084d fix: duplicate emails in password resets
Laravel deletes all previous password resets when adding a new reset, however, this is a race condition and it's possible for duplicate emails to exist in the table.
2024-02-22 12:16:36 +00:00
Roardom 9828209241 fix: use the same amount of precision as before on transactions
Values in bytes are stored in this column and need more precision.
2024-02-22 00:21:29 +00:00
Roardom d31d62f227 update: speed up topic loading with many posts
On a topic with 180 pages (4500 posts), this covering index sped up the page load time from 4.2 seconds to 0.18 seconds.
2024-02-20 02:30:42 +00:00
HDVinnie 068c056673 Merge pull request #3539 from Roardom/update-mysql-types
(Update) Mysql types
2024-02-19 18:24:40 -05:00
Roardom 6b8d4e2c58 update: replace unsigned doubles with decimals and constraint
Unsigned decimal/float/double is deprecated in MySQL, they require adding a constraint instead. I'm facing issues when using the Diesel ORM in Rust with UNIT3D's schema because diesel does not want to add support for deprecated types. I switched the double to decimal because decimal makes much more sense for monetary values. There exists previous bon_transactions records below 0 from when UNIT3D unintentionally allowed negative gifts/tips so I did not add a constraint to that column.
2024-02-19 11:26:39 +00:00
Roardom ea10a75135 update: use unsigned smallint for release year
Because this type is nonstandard, I'm facing issues when using the Diesel ORM in Rust with UNIT3D's schema because it does not support this non-standard type. Also, there exist movies from before 1901 which this type doesn't support.
2024-02-19 11:17:19 +00:00
Roardom a0051b9a38 add: primary keys to all tables
Some other ORMs require a primary key on every table. I'm facing issues when using the Diesel ORM in Rust with UNIT3D's schema. Related: https://www.github.com/laravel/laravel/pull/6064
2024-02-19 11:02:09 +00:00
Roardom 14e9b84b61 fix: forum permissions seeder
Permissions only relate to forums now, not categories, so we no longer need to add permissions for the category.
2024-02-19 04:55:21 +00:00
HDVinnie 8c0848cf43 Merge pull request #3528 from Roardom/fix-subtitle-upload
(Fix) Subtitle upload
2024-02-14 11:12:10 -05:00
HDVinnie e9b472558a Merge pull request #3525 from Roardom/add-forum-reads
(Update) Keep track of current post being read in a forum topic
2024-02-13 21:46:03 -05:00
Roardom 12fb2be874 fix: subtitle upload
Without this, laravel saves the file under a different name in a directory of the same name of the intended filename.
2024-02-14 02:41:16 +00:00