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
Roardom
868ad35aa4
refactor: swap magic RedirectResponse withX('Y') to with('X', 'Y')
...
Allows ctrl+clicking to access the underlying function unlike the previous magic implementation. Probably also negligibly faster.
Swapped all instances of `>withSuccess(` -> `>with('success', `, `>withWarning(` -> `>with('warning', `, and `>withInfo(` -> `>with('info', ` with ide's find and replace.
2025-01-21 16:05:11 +00:00
HDVinnie
193c280358
fix: eager loading regression from #2908
...
- category was duplicated awhile back in https://github.com/HDInnovations/UNIT3D-Community-Edition/pull/2908
2024-12-03 23:03:48 -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
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
MiM-MiM
af3c6e4ed3
Update: Moderation comment
...
- Removed app.url handled by bbcode parser.
- Changed to single quote strings for parts without escape characters (newlines).
2024-07-01 16:11:03 -04:00
MiM-MiM
1dce66e5d9
Update: Moderation Private Message
...
- Fix: Spacing typo.
- Fix: Set sender as read=true.
- Update: Add the URL to the message.
- Update: Add a quote tag around the staff message.
2024-07-01 12:03:03 -04:00
Roardom
8b9b038701
fix: conversation creation
...
Should use `sender_id`, not `user_id`. Also need to create conversations for all non-system pms.
2024-06-15 01:55:03 +00:00
Roardom
b86475a732
add: strict types to all files
2024-05-23 13:58:29 +00:00
HDVinnie
221b9e4dee
remove: joypixel emojis
2024-02-22 17:44:53 -05:00
Roardom
bc94c0ed5e
update: cache torrents in announce by infohash
2023-09-07 03:37:09 +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
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
5890ebc749
refactor: miscellaneous staff controller refactors
2023-07-07 00:28:47 +00:00
Roardom
d2e36c368e
refactor: reduce temporary variables passed to views
2023-06-19 23:25:40 +00:00
HDVinnie
7d991881f4
fix: N+1 issues
2023-04-16 00:14:16 -04:00
Roardom
05ad4c37b9
add: external tracker support
2023-03-27 04:17:30 -05: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
85827905bd
refactor: move moderation request to form request
2023-01-08 05:04:49 -06:00
Roardom
54220dcfc8
remove: slugs
2023-01-06 16:05:53 -06:00
HDVinnie
1b5802768f
fix: ModerationController
2022-11-14 00:42:38 -05:00
HDVinnie
ed221b4bb7
PSR12 Linting
2022-11-03 11:08:56 +00:00
Roardom
ffb8b2511b
refactor: torrent moderation buttons
2022-11-03 01:20:53 -05:00
HDVinnie
2ca429c4ce
Revert "PSR12 Linting"
...
This reverts commit 7e65e1d589 .
2022-09-11 19:51:58 -04:00
HDVinnie
7e65e1d589
PSR12 Linting
2022-09-11 23:50:41 +00:00
Roardom
3874c0d58b
fix: approved torrents show different chatbox messages
2022-07-25 17:09:34 -05:00
StyleCI Bot
e292545306
Apply fixes from StyleCI
2022-05-31 22:06:07 +00:00
Shift
be2d37ed6e
Use Illuminate\Support\Carbon
2022-05-31 22:05:34 +00:00
HDVinnie
594b7864d9
refactor: adopt new helpers in laravel 9
2022-03-06 17:20:05 -05:00
HDVinnie
bdd63aa816
update: controllers
2022-02-28 05:06:55 -05:00
HDVinnie
98521378d2
chore: phpdoc blocks
2022-01-10 17:46:43 -05:00
HDVinnie
d3abd28925
update: type hints
2022-01-08 15:35:53 -05:00
HDVinnie
a2cdb5f5ff
update: type hints
2022-01-08 14:37:50 -05:00
HDVinnie
77ec35bea5
chore: apply the laravel code style linter
2022-01-08 00:03:12 -05:00
HDVinnie
97394c062f
chore: adopt type hints
2022-01-07 23:35:33 -05:00
HDVinnie
2a53cea216
refactor: newline after statement
2021-09-28 12:49:46 -04:00
clandestine8
a737482e79
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2021-09-06 23:26:02 +00:00
HDVinnie
321847e067
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2021-05-16 02:41:53 +00:00
HDVinnie
3407075214
refactor: better php8 usage
...
- Change simple property init and assign to constructor promotion
- Remove unused variable in catch()
- Change docs types to union types, where possible
2021-05-15 22:41:28 -04:00
HDVinnie
999c16093b
cleanup: unused variables
2021-05-15 12:52:00 -04:00
HDVinnie
21ddf328bf
refactor: staff moderation controller
2020-12-30 12:18:38 -05:00
HDVinnie
467d31f10a
refactor: constructor promotions
2020-12-17 23:25:50 -05:00
HDVinnie
0733269867
update: phpdoc blocks
2020-07-22 16:57:13 -04:00
HDVinnie
a975116218
refactor: preslash simple functions
...
- Add pre-slash to short named functions to improve performance by almost 30%
- @see https://stackoverflow.com/questions/55419673/php7-adding-a-slash-to-all-standard-php-functions-php-cs-fixer-rule
2020-07-22 15:09:37 -04:00
HDVinnie
e7ccde0190
refactor: rename property to match type
2020-07-22 14:50:41 -04:00
HDVinnie
3d3de56ccb
update: queries
2020-05-26 13:22:18 -04:00
HDVinnie
4b9c006a05
chore: phpdoc blocks cleanup
2020-03-05 10:46:14 -05:00
HDVinnie
605c337204
refactor: encapsed strings to sprintf
2020-02-17 13:52:20 -05:00