Commit Graph

200 Commits

Author SHA1 Message Date
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
HDVinnie
7d60ac4d23 add: #3647
- close #3647
2024-03-12 09:47:58 -04:00
HDVinnie
ff559880eb Merge pull request #3628 from Roardom/fix-image-ratio-error-msg
(Update) Add more descriptive error message for gif ratio requirements
2024-03-06 18:37:09 -05:00
Roardom
550d35a178 update: add more descriptive error message for gif ratio requirements 2024-03-06 22:43:12 +00:00
Roardom
8d11ebbff4 update: rename Two-Step to Two-Factor
To make it consistent everywhere.
2024-03-06 19:28:46 +00:00
Roardom
98c32a38f3 update: remove request bon transactions
This data is already stored in the requests and bounty tables. At this point, the name and comment fields are duplicates of each other and don't need to both be kept.
2024-02-26 09:33:33 +00:00
Roardom
a37f414145 update: normalize post tips and torrent tips 2024-02-26 09:33:32 +00:00
Roardom
537ad1e831 refactor: normalize user gifts 2024-02-26 09:33:08 +00:00
Roardom
6e5b3d9e3b refactor: use scope for forum authorization 2024-02-25 10:23:56 +00:00
Roardom
725a8df689 Revert "fix: TransactionController"
This reverts commit 6e4e9a2767.

Even though this data is wrong, this data is relied upon in other places and has to be migrated.
2024-02-23 16:23:48 +00:00
HDVinnie
6e4e9a2767 fix: TransactionController 2024-02-21 18:41:51 -05:00
Roardom
45abd69c9d update: keep track of current post being read in a forum topic 2024-02-14 01:07:49 +00:00
Roardom
f30dec4a0c update: remove show_forum permission
This permission is used the same as the `read_topic` permission.
2024-02-10 19:50:05 +00:00
HDVinnie
ca07ed66d6 update: InviteController.php 2024-02-07 18:06:15 -05:00
Roardom
ba33c01bc2 update: require 2fa to invite users 2024-02-07 17:57:42 -05:00
Roardom
b5caf6d3a1 fix: posts index eager load
We use the state in the post component but aren't selecting it.
2024-02-06 08:43:40 +00:00
Roardom
77c55b783a remove: user ratings source
This hasn't worked for years and never will due to lack of free API from IMDb.
2024-02-04 07:28:20 +00:00
Roardom
c6f220bf84 add: email logging
Don't log the email addresses themselves to maintain user privacy.
2024-01-21 10:59:26 +00:00
Roardom
0ef7cc235a fix: phpstan level 7 controller errors 2024-01-07 17:13:20 +00:00
HDVinnie
aa3dc8ed18 refactor: enums 2024-01-04 03:26:10 -05:00
Roardom
fd12439113 fix: tmdb service phpstan ci 2023-12-30 11:34:23 +00:00
HDVinnie
ec950fbf84 Revert "Merge pull request #3281 from Roardom/fix-user-earnings"
This reverts commit 3a14d187a9, reversing
changes made to d6ee5e0f0b.
2023-12-10 10:19:52 -05:00