Commit Graph

14 Commits

Author SHA1 Message Date
Roardom
278567193c fix: user tips page from erroring when torrent/post no longer exists 2023-11-24 01:41:50 +00:00
Roardom
1348ffeaa8 fix: reorder seedbonus decrement so error is generated first 2023-08-31 09:20:50 +00:00
Roardom
2ca7adbbe5 fix: various larastan controller issues 2023-08-25 09:13:18 +00:00
Roardom
d7cf34b84a update: use laravel attributes on user model 2023-08-06 02:14:30 +00:00
Roardom
229eed8091 refactor: use _id suffix on bon_transactions foreign keys 2023-07-22 21:30:50 +00:00
Roardom
b6b4313bdc update: various database performance improvements
Use eager loading where necessary and add a few indexes. The existing index on private_messages for sender_id and read was probably a typo and intended for receiver_id. The first 3 tables indexes are added to are used for queries ran on every page load: namely the new pm, new notification and warnings indicator in the navbar. Additionally, another index on genre_movie proved useful for finding all the genres when given a movie id. Perhaps, another index for finding all movies within a genre would be good as well, but will leave that for a future optimization if deemed necessary.
2023-07-17 00:21:08 +00:00
Roardom
741adef615 add: moderation scopes 2023-07-10 04:20:40 +00:00
Roardom
6835ed5f8c refactor: tips
Use route model binding. Use mass assignment. Use relations.
2023-07-07 00:28:47 +00:00
Roardom
aef482682b refactor: swap comparing ids to is() and isNot 2023-07-07 00:28:47 +00:00
HDVinnie
a9de25e9dd fix: multiple bugs 2023-06-27 07:44:48 -04:00
Roardom
d2e36c368e refactor: reduce temporary variables passed to views 2023-06-19 23:25:40 +00:00
HDVinnie
472c820f99 update: UNIT3D linting
- github action updated with new ruleset in pint.json
- codebase linted with new ruleset
- contributors can now run `./vendor/bin/pint`
- action workflow will auto correct any lint issues upon commit/opened pull request
2023-02-02 08:02:34 -05:00
Roardom
7cb2c04be6 refactor: user views 2022-12-24 19:26:46 -06:00
Roardom
d1173f4c90 refactor: user controllers 2022-12-24 19:26:46 -06:00