756 Commits

Author SHA1 Message Date
Roardom bc94c0ed5e update: cache torrents in announce by infohash 2023-09-07 03:37:09 +00:00
HDVinnie 88d114c526 PHP Style Change (Laravel Pint CI) 2023-08-30 09:39:04 +00:00
Roardom 2ca7adbbe5 fix: various larastan controller issues 2023-08-25 09:13:18 +00:00
HDVinnie 0b8ecd91e7 Merge pull request #3056 from Roardom/forum-foreign-keys
(Update) Use foreign key constraints for forum and topics ids
2023-08-18 01:46:41 -04:00
Roardom 88e0c4e1cb update: use foreign key constraints for forum and topics ids 2023-08-18 05:27:02 +00:00
Roardom 8e806931be update: switch user note deletion to livewire 2023-08-13 10:45:49 +00:00
HDVinnie 088f74a912 Merge pull request #3035 from Roardom/security-setting-permissions
(Update) Harden user security setting editing
2023-08-06 21:31:15 -04:00
Roardom 0697daf1d6 update: harden user security setting editing
Although convenient for staff to be able to edit users of the same rank, this presents a security risk
2023-08-06 23:49:22 +00:00
Roardom f6fb3fdc78 fix: staff dashboard seeder/leecher count 2023-08-06 05:59:49 +00:00
HDVinnie c498938b84 Merge pull request #3020 from Roardom/add-history-search
(Add) Staff history search
2023-08-03 14:15:35 -04:00
Roardom 7f2c8a6286 add: staff history search 2023-08-03 12:07:55 +00:00
Roardom 1bc31fda9d fix: only use active peers for stats and bon 2023-08-03 07:28:16 +00:00
clandestine8 efa29cbd00 Fix: Application Controller 2023-07-31 20:27:04 -04:00
HDVinnie 38c048fb16 Merge pull request #2994 from Roardom/add-gifts-log
(Add) Gifts log
2023-07-30 03:38:09 -04:00
Roardom aac69a8a4a add: gifts log 2023-07-30 05:43:53 +00:00
Roardom 73741ce0ad fix: staff note deletion 2023-07-29 06:50:51 +00:00
Roardom 5ec59675c4 update: drop position column on distributors
With almost 1000 distributors, it's a nightmare trying to add a new distributor and having to change its position. All the distributors are ordered alphabetically anyways so just order based on the `name` field instead.
2023-07-20 10:30:07 +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 a3394cd2a7 fix: only show groups permitted by the user's rank 2023-07-07 17:52:36 +00:00
HDVinnie e442d738e6 PHP Style Change (Laravel Pint CI) 2023-07-07 03:30:38 +00:00
Roardom 0000838d8b refactor: cruddy torrents
Separate torrents into cruddy route names. Route model binding isn't possible due to the global scope on unapproved torrents. Use form requests. Simplify the controller flow where possible.
2023-07-07 03:18:13 +00:00
Roardom 7b312d219a refactor: use route model binding for staff users 2023-07-07 03:18:13 +00:00
Roardom 454c0fbe2d refactor: use route model binding for staff watchlist 2023-07-07 03:18:13 +00:00
Roardom 31a228c88a refactor: use route model binding for staff internals 2023-07-07 03:18:13 +00:00
Roardom 5dba248143 refactor: use route model binding for staff notes
Also add missing controller method and remove dead route.
2023-07-07 03:18:13 +00:00
Roardom 0a19cd4b07 refactor: use route model binding for staff types 2023-07-07 03:18:13 +00:00
Roardom 8ee9fa059c refactor: use route model binding for staff rss
Also fix rss store/update validation for allowing empty imdb/tmdb/tvdb/mal fields.
2023-07-07 03:18:13 +00:00
Roardom e8db1ed073 refactor: use route model binding for staff resolutions 2023-07-07 03:18:13 +00:00
Roardom 276c7cdc97 refactor: use route model binding for staff reports 2023-07-07 03:18:13 +00:00
Roardom bcaaaa4209 refactor: use route model binding for staff seedboxes 2023-07-07 03:18:13 +00:00
Roardom a703cdb61d refactor: use route model binding for staff regions
Also fix up an error with the existing form request.
2023-07-07 03:18:13 +00:00
Roardom 8c557481ed refactor: use route model binding for staff polls 2023-07-07 03:18:13 +00:00
Roardom a5b8ff21bc refactor: use route model binding for staff pages 2023-07-07 03:18:13 +00:00
Roardom af4dc9e771 refactor: use route model binding for staff media languages 2023-07-07 03:18:13 +00:00
Roardom a28667f969 refactor: use route model binding for staff groups 2023-07-07 03:18:13 +00:00
Roardom 931901a384 refactor: use route model binding for staff forums 2023-07-07 03:18:13 +00:00
Roardom 310153303a refactor: use route model binding for staff distributors 2023-07-07 03:18:13 +00:00
Roardom d08a808737 refactor: use route model binding for staff cheated torrents 2023-07-07 03:18:13 +00:00
Roardom 0ecc17f366 refactor: use route model binding for staff chat statuses 2023-07-07 03:18:13 +00:00
Roardom 8f9f7ce824 refactor: use route model binding for staff chatrooms 2023-07-07 03:18:13 +00:00
Roardom b4fd0afc26 refactor: use route model binding for staff bots 2023-07-07 03:18:13 +00:00
Roardom 3450577c00 refactor: use route model binding for staff categories 2023-07-07 00:28:47 +00:00
Roardom 3c107635bb refactor: use route model binding for blacklisted clients
Also fix the html to match the other pages. Also fix up the url and route names to match the naming conventions. The model name and database table name will have to be renamed at a later time.
2023-07-07 00:28:47 +00:00
Roardom dd503f0471 refactor: properly cruddify user bans 2023-07-07 00:28:47 +00:00
Roardom 5decda2af4 refactor: use route model binding for staff audits 2023-07-07 00:28:47 +00:00
Roardom ed4639083b refactor: use route model binding for staff articles 2023-07-07 00:28:47 +00:00
Roardom 3b46c7819b refactor: use route model binding for user routes 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
Roardom 5890ebc749 refactor: miscellaneous staff controller refactors 2023-07-07 00:28:47 +00:00