Commit Graph

744 Commits

Author SHA1 Message Date
Roardom
6a703e810b fix: most phpstan types in donation controllers 2025-08-19 19:39:30 +00:00
Roardom
9bdbe9764c refactor: cached select group id by slug queries
Uses a better key. Doesn't use the cache when it's not needed.
2025-07-14 18:15:29 +00:00
Roardom
fb0f77c920 fix: delete prior article/category/playlist image upon new image upload 2025-06-30 08:41:28 +00:00
Roardom
9e63d82297 add: store unread news notifications 2025-06-18 05:04:40 +00:00
Roardom
0d92098d6f refactor: replace users.active with users.email_verified_at
This is the correct column intended to be used by the Laravel framework. `active` seems to be a custom column that was implemented in UNIT3D before Laravel added email verification in version 5.7.
2025-06-11 06:07:56 +00:00
HDVinnie
3dd529d0ba fix: dashboard_torrents count to not include soft deletes 2025-05-30 09:30:47 -04:00
Roardom
6fec472ac5 update: exclude cheated torrents under 5% the torrent size
Less false positives caused by different clients providing different traffic stats depending on if a downloaded piece is corrupted and retries or similar.
2025-05-29 09:37:40 +00:00
Roardom
596019ff53 update: improve cheated torrent algorithm 2025-05-28 12:26:59 +00:00
HDVinnie
230c7de1fd Merge pull request #4726 from HDInnovations/Laravel-12
(Add) Laravel 12 Support
2025-05-26 22:27:49 -04:00
HDVinnie
482424550d fix: reported phpstan errors 2025-05-26 21:54:57 -04:00
Roardom
fca4543949 Revert "Allow Admins to Edit Any Profile"
This reverts commit 797395ac87.
2025-05-26 03:35:46 +00:00
Roardom
5f60ce6b77 refactor: enforce view filenames to use kebab case
Also had to use `@style` directives inside /resources/views/components/user-tag.blade.php. Prettier was erroring when the `@if` directive was inside the html attribute otherwise. Seems to have always been an issue, but the CI must only be formatting files that changed and because the file was only just changed now, it never discovered it until now.
2025-05-07 08:28:46 +00:00
HDVinnie
094f64ed46 refactor: mass private message system
- Dedicated CRUD controller
- Allow selected groups only
- Old Mass action controller will be moved to own Mass validate users controller in separate pr
- closes #4690
2025-05-06 08:37:54 -04:00
HDVinnie
4ed0834818 lint: use to_route helper 2025-05-05 22:03:33 -04:00
HDVinnie
299d1dae2a add: event deletion condition
- One cannot delete an event where users have already claimed a prize. Foreign key constraint stops this. So we implement a condition to prevent this and return message to mark the event as inactive instead.
2025-05-05 20:26:27 -04:00
Roardom
9efc2d3c5c add: playlist categories 2025-04-01 09:54:31 +00:00
Roardom
ae33c74f2b refactor: prefix tmdb metadata models with tmdb
Will help for when there exists other metadata sources available (such as already done for igdb)

Step 4 in cleaner meta fetching code.
2025-03-17 20:41:01 +00:00
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
1af1862229 fix: store user-uploaded files in private directories
Filenames were randomized for a few of these to prevent public access, but it's still much better to put user-uploaded files behind auth.
2025-02-24 16:03:01 +00:00
HDVinnie
6080308758 Merge pull request #4485 from Roardom/tinyint-bool
(Fix) Migrate boolean columns to tinyint(1)
2025-02-20 18:05:21 -05:00
Roardom
58ff976f12 update: hide 'flush ghost peers' button when external tracker is enabled
The button doesn't do anything anyways for the external trackers. Users have to just wait it out.
2025-02-19 06:32:41 +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
dc8ba9530e fix: updating bon earning with no conditions 2025-02-02 11:44:39 +00:00
HDVinnie
22ee788343 Merge pull request #4450 from Roardom/fix-bon-earning-dashboard
(Fix) Various staff dashboard issues with new bon system
2025-01-28 12:01:11 -05:00
HDVinnie
d2452f478f Merge pull request #4447 from Roardom/spellcheck
(Add) Spell check ci
2025-01-28 12:00:43 -05:00
Roardom
604b7e1937 add: spell check ci
Just an initial portion for now fixing incorrect text and preventing future incorrect text. Eventually, I'd like to fix everything still listed under "ignoredWords" in cspell.json.
2025-01-24 11:30:34 +00:00
Roardom
1c5b3c5c26 fix: storing bon earnings without conditions 2025-01-24 09:32:57 +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
Roardom
d922562f86 update: make bonus point allocation more customizable 2025-01-16 21:40:25 +00:00
HDVinnie
455ba75337 Merge pull request #4380 from Roardom/group-permissions
(Add) Edit forum permissions when creating/editing group
2024-12-16 19:52:22 -05:00
Roardom
1e342d98fe add: edit forum permissions when creating/editing group 2024-12-16 11:04:27 +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
192b5ed15d chore: remove unused imports that pint is missing 2024-12-01 20:52:32 -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
18b3735085 add: log unregistered torrents 2024-11-13 09:56:43 +00:00
HDVinnie
8eb1e64cc1 Merge pull request #4300 from Roardom/ansi-db
(Refactor) Use ANSI-compatible syntax for raw database queries
2024-11-03 21:15:37 -05:00
Roardom
0e4bcb570d refactor: use ANSI-compatible syntax for raw database queries 2024-11-02 04:26:49 +00:00
HDVinnie
98b7bad411 add: donation package soft deletes
- fixes #4277
2024-10-31 23:09:35 -04:00
HDVinnie
ea448effa6 add: editors to audit stats 2024-10-21 15:54:41 -04:00
HDVinnie
c8662e0348 Merge pull request #4249 from Roardom/bot-bool-active 2024-10-20 09:54:30 -04:00
Roardom
e4ac5caa30 fix: use bool for bot active instead of int
Also update docblocks. Related: #4085.
2024-10-20 10:26:00 +00:00
Roardom
69d1bb47c1 fix: use bool for rss is_private instead of int 2024-10-20 10:14:28 +00:00
Roardom
ff5e30295a add: staff-configurable events with daily prizes 2024-10-15 08:20:13 +00:00
HDVinnie
2b94479b22 update: report notification blip
- exclude snoozed reports.
2024-10-10 20:21:18 -04:00
HDVinnie
9eec2794ba update: donation controller 2024-10-06 17:18:38 -04:00
HDVinnie
0e58d810f3 update: donation charts
- @json is deprecated
- move colors to css variables
- cleanup query
- cleanup JS
2024-10-03 21:43:22 -04:00
HDVinnie
6f3a2a6c17 add: daily + monthly donations charts 2024-10-03 20:52:25 -04:00
Roardom
3878bb85d7 update: add indexes to audits to speed up staff activity counts
Speeds up the queries from 1.1 s to 75 ms.
2024-09-27 07:39:25 +00:00
HDVinnie
f629f8d3f0 update: donation controller 2024-09-15 19:04:51 -04:00
HDVinnie
9c61d724b6 update: donation system 2024-09-14 23:05:13 -04:00