Commit Graph

221 Commits

Author SHA1 Message Date
Roardom
6a103cee97 refactor: use laravel notifications for system user private messages 2025-02-02 18:48:27 +00: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
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
85fd77b0bf Revert "(Add) Allow Modo users to 'Revive' Deleted Invites & Expired Invites." 2025-01-20 08:38:53 -05:00
HDVinnie
f0672496b2 Merge pull request #4422 from clandestine8/add-revive-invites
(Add) Allow Modo users to 'Revive' Deleted Invites & Expired Invites.
2025-01-20 08:29:26 -05:00
Roardom
d922562f86 update: make bonus point allocation more customizable 2025-01-16 21:40:25 +00:00
clandestine8
4d19d6ff58 Update: Rework to conform to project code styling.
- Use Inline Model Syntax
   - Divide the functionality of revive from resend, requiring the user to explicitly Resend the invite.
   - Inline Blade Logic to remove @php ... @endphp block
   - Add 'revive' endpoint for Invites.
   - Add missing default translations
2025-01-11 16:33:42 -05:00
clandestine8
e3bdda2860 Add: Allow Modo users to 'Revive' Deleted Invites & Expired Invites.
- Configuration to Enable/Disable in 'config/other.php'
  - Enabled by Default
  - Expiration Data is extended by the existing 'invite_expire' config.
2025-01-11 14:33:38 -05:00
Roardom
2edfd6c893 update: increase zip limits
One user couldn't download their zips within 1024M, but were able to successfully download with 2048M
2024-12-18 04:18:53 +00:00
HDVinnie
192b5ed15d chore: remove unused imports that pint is missing 2024-12-01 20:52:32 -05:00
Roardom
88888e5f6c fix: invite tree query
Regression from #4350
2024-11-28 11:10:46 +00:00
Roardom
58f35d24a6 fix: invite tree query
Regression from #4300
2024-11-26 19:38:48 +00:00
HDVinnie
87a2a86006 Merge pull request #4346 from Roardom/max-buffer-upload 2024-11-23 20:23:38 -05:00
Roardom
d9863fc346 add: restrict bon upload purchases if buffer is too high 2024-11-24 00:52:39 +00:00
HDVinnie
a93c9f1212 Merge pull request #4169 from Roardom/profile-client-seedsize
(Add) Client torrent size sum to profile page
2024-11-20 22:32:37 -05:00
Roardom
0e4bcb570d refactor: use ANSI-compatible syntax for raw database queries 2024-11-02 04:26:49 +00:00
HDVinnie
25031dcf76 chore: pint ci 2024-10-30 07:29:13 -04:00
Ion Bazan
87e547b444 Add internal note for staff invitations 2024-10-30 11:14:48 +08:00
Roardom
f77e14dd71 fix: hide user anon upload count by default 2024-10-14 05:21:16 +00:00
Roardom
69b7f1fcb9 add: client torrent size sum to profile page
This query's execution time is increased from 10 ms to ~550 ms for power users with a few thousand torrents, or ~30 ms for average users with a few dozen torrents. Is the increased page load time worth its usefulness?
2024-09-22 08:02:52 +00:00
HDVinnie
428bf63910 add: base donation system 2024-09-12 13:03:38 -04:00
Roardom
666361a749 fix: prevent users from replying to deleted system user 2024-08-28 05:51:18 +00:00
Roardom
9ab8ba18e5 refactor: reduce usage of numeric strings 2024-08-26 10:14:52 +00:00
HDVinnie
ec32982755 Merge pull request #4063 from Roardom/password-reset-history
(Add) Password reset history logging
2024-08-17 12:02:11 -04:00
Roardom
5f28892153 add: password reset history logging 2024-08-17 15:05:47 +00:00
Roardom
7af1a9963c refactor: don't call ->toDateTimeString() on carbon instances
Eloquent already does this for us automatically by calling __toString() on Carbon instances with the default format being the same as the mysql timestamp format.
2024-08-17 09:20:08 +00:00
Roardom
e02d25875b fix: various invite tree fixes
Average seedtime is now average and not total. Swap tree stats of seedsize vs seedtime. Use correct user for last action. Filter out infinite ratios.
2024-08-12 05:19:03 +00:00
Roardom
66f7dc08f0 add: invite tree user page 2024-08-11 17:27:00 +00:00
Roardom
ee55abcd3b refactor: use relational upserts
New feature added to laravel 11.18-11.19 that results in cleaner code.
2024-08-10 09:43:58 +00: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
Roardom
2e91e1157f fix: some user group permissions
These permissions were never meant to be directly edited by staff. They should never have been added to the staff user edit page as it just caused confusion when the settings reset at the daily group change. I've now added these settings to the group directly and allow the settings on the user edit page to override the group settings. I refrained from fixing the can_download permission for now, because so many different things affect it and it will need at 3 separate permissions to control everything it does. Trying to fix it will take much more effort than what can be fixed today. Because of this, I removed the setting from the user edit page to reduce confusion from staff who don't realize it is controlled by the scheduler. Relevant issue: #1820.
2024-07-26 22:35:45 +00:00
HDVinnie
19b172f397 update: transaction controller
- Like the logic for sending invites. If invites are in restricted mode, dont allow a non whitelisted group to buy invites from the store.
2024-07-03 21:31:52 -04:00
Roardom
dd273f0398 fix: don't mark sent pms as unread for sender 2024-06-19 09:37:13 +00: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
cdb063d8e0 add: private message threads 2024-06-07 20:47:36 +00:00
Roardom
0e0fc3524f refactor: modularize system notifications and prevent replies 2024-06-07 14:08:23 +00:00
Roardom
46240da36f refactor: clean up user settings controllers
Use form requests
2024-05-29 10:40: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
1f702a2d37 Merge pull request #3863 from Roardom/title-subscribe
(Refactor) Wishlist and add movie/tv subscriptions
2024-05-26 15:13:22 -04:00
HDVinnie
d3c2779ed0 Merge pull request #3862 from Roardom/fix-duplicate-bon
(Fix) User bon earning calculation
2024-05-26 15:12:46 -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
0df196f077 refactor: wishlist and add movie/tv subscriptions
closes #3826
2024-05-24 11:38:06 +00:00
Roardom
38edbbc613 fix: user bon earning calculation
Take 2 at #3281

fixes #3726
2024-05-24 09:47:04 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
f653641e2b fix: connectivity check on external tracker
The external tracker updates the peer row and doesn't touch the redis cache.
2024-04-19 14:32:43 +00:00
Roardom
e3234da27f fix: viewing stats from external tracker
Some incorrect logic here that was never properly tested
2024-04-19 09:38:26 +00:00
HDVinnie
83ce914c43 update: TorrentZipController 2024-03-26 21:51:16 -04:00
HDVinnie
ce1eca4e9e add: #3654 2024-03-14 11:11:59 -04:00