Commit Graph

159 Commits

Author SHA1 Message Date
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
Roardom 350a4aa069 add: show information in external tracker 2023-12-07 03:31:48 +00:00
Roardom 6e10faff3d update: external tracker api
Log a more detailed error, and separate user and group into separate api calls.
2023-12-06 09:17:59 +00:00
HDVinnie 3a14d187a9 Merge pull request #3281 from Roardom/fix-user-earnings
(Fix) User bon earnings calculation
2023-12-02 20:25:46 -05:00
Roardom 57a4e09dfe fix: user bon earnings calculation
The hourly bon allocation cron job does not multiply the bon by how many peers a user has on a torrent, but the user earnings page did not reflect this.
2023-11-30 07:45:58 +00:00
Roardom 278567193c fix: user tips page from erroring when torrent/post no longer exists 2023-11-24 01:41:50 +00:00
Roardom 1221b6809b add: apikey logging 2023-11-16 18:27:49 +00:00
HDVinnie 806a2ff89e Merge pull request #3248 from Roardom/rsskey-logging
(Add) Rsskey logging
2023-11-16 07:12:13 -05:00
HDVinnie 36134fa4d3 fix: passkey crud 2023-11-16 07:04:13 -05:00
Roardom 17867ac777 add: rsskey logging 2023-11-16 09:53:56 +00:00
Roardom bfd2abe653 update: wrap passkey updates in database transaction 2023-11-14 18:01:47 +00:00
Roardom cbfd7c0739 add: passkey logging 2023-11-13 08:18:39 +00:00
HDVinnie a410807d11 update: two_factor_auth 2023-11-11 18:15:52 -05:00
HDVinnie 033e86149d PHP Style Change (Laravel Pint CI) 2023-11-08 00:34:31 +00:00
HDVinnie f4aab26086 remove: email based 2fa 2023-11-06 10:30:18 -05:00
HDVinnie 834f7f4d7a update: UserGroups ENUM 2023-10-31 06:47:08 -04:00
ReileenKawahara 76a6bd5a39 fix: operand 2023-09-02 13:03:49 +02:00
HDVinnie 769fb6213f fix: lint 2023-09-02 00:35:23 -04:00
Reileen Kawahara 056e163af5 fix: avatar remove old 2023-09-01 11:22:10 -07:00
HDVinnie 3188b4cde6 Merge pull request #3101 from Roardom/reorder-seedbonus-decrement
(Fix) Reorder seedbonus decrement so error is generated first
2023-08-31 18:24:15 -04:00
Roardom 1348ffeaa8 fix: reorder seedbonus decrement so error is generated first 2023-08-31 09:20:50 +00:00
Roardom 980c8e173f fix: bon amount in gift message 2023-08-31 09:05:01 +00:00
Roardom 2ca7adbbe5 fix: various larastan controller issues 2023-08-25 09:13:18 +00:00
Roardom 435dab893e add: user application to their profile 2023-08-23 09:57:28 +00:00
Roardom a5aa4513ad add: torrent posters search view 2023-08-19 21:48:19 +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 d7cf34b84a update: use laravel attributes on user model 2023-08-06 02:14:30 +00:00
Roardom 1bc31fda9d fix: only use active peers for stats and bon 2023-08-03 07:28:16 +00:00
Roardom fac2446642 fix: keep query parameters on inbox/outbox pagination 2023-08-01 03:54:40 +00:00
HDVinnie f776991059 Merge pull request #2975 from Roardom/update-history-upserts
(Update) Don't fetch history record before updating it
2023-07-31 21:48:43 -04:00
Jay Sizzla 9fab0e8fdb (Add) Validation of user title, about and signature length 2023-07-30 12:08:52 +02:00
Roardom c554e29abe update: keep peers that stopped announcing for longer
Now that we upsert history records without first selecting them, we can't rely on storing a peer's last uploaded/downloaded values in the history record to determine the user's uploaded/downloaded delta between the last announce. If a user has internet issues for a brief period of time but their client continues working, then their change of upload/download between the two announces needs to be kept track of. This is usually kept track of in the peer record, but if the peer is deleted after 2 hours of not announcing, then their last uploaded/downloaded data is deleted with it. We previously stored this data in the history table to handle such cases but this became erroneous if the user had multiple peers on a torrent. This new solution keeps the peers in the database for 2 days before concluding that the peer isn't coming back and deletes the peer permanently. After which point, a new peer will be created and an assumption is made that they uploaded/downloaded 0 data within their downtime.
2023-07-29 05:12:35 +00:00
Roardom bb5255d968 Revert "update: cache personal freeleech existence instead of its value"
This reverts commit b48a9222d1.
2023-07-28 06:08:55 +00:00
Roardom b48a9222d1 update: cache personal freeleech existence instead of its value
We only cache it if it exists, so let's not query it every single time it doesn't exist.
We don't remove it from the hourly run command yet so that currently existing freeleeches can be deleted.
2023-07-25 22:48:56 +00:00
HDVinnie 06ff54fd18 Merge pull request #2951 from Roardom/rename-graveyard-to-resurrections
(Refactor) Rename `graveyard` to `resurrections`
2023-07-23 22:39:36 -04:00
Roardom 9c0c474a9a refactor: rename graveyard to resurrections
Make everything consistent with the "plural noun" style
2023-07-24 01:07:35 +00:00
Roardom 995677bb4a fix: wrap bon store purchases within a transaction 2023-07-23 22:19:35 +00:00
HDVinnie 74c2252cf3 Merge pull request #2937 from Roardom/rename-sender-receiver
(Refactor) Use `_id` suffix on bon_transactions foreign keys
2023-07-23 15:19:01 -04:00
Roardom 229eed8091 refactor: use _id suffix on bon_transactions foreign keys 2023-07-22 21:30:50 +00:00
Roardom 8b08bdfd6d fix: user resurrection creation
This value needs to be nullable if it doesn't exist so that the seeditme can be set to 0 if there exists no history.
2023-07-21 10:39:43 +00:00
Roardom 9205f9ec36 fix: user gift styles 2023-07-20 07:46:08 +00:00