67 Commits

Author SHA1 Message Date
Roardom
9240f4d1eb update: increase user about me char limit
This limit is less important than the forum signature and can be increased.
2025-08-04 06:39:01 +00:00
Roardom
eb476eee3c fix: remaining /files/img hardcoded urls
Regression from #4497
2025-03-05 13:17:50 +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
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
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
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
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
Roardom
550d35a178 update: add more descriptive error message for gif ratio requirements 2024-03-06 22:43:12 +00:00
Roardom
0ef7cc235a fix: phpstan level 7 controller errors 2024-01-07 17:13:20 +00:00
Roardom
350a4aa069 add: show information in external tracker 2023-12-07 03:31:48 +00:00
HDVinnie
3f03214e39 PHP Style Change (Laravel Pint CI) 2023-11-07 23:54:38 +00: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
Roardom
435dab893e add: user application to their profile 2023-08-23 09:57:28 +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
229eed8091 refactor: use _id suffix on bon_transactions foreign keys 2023-07-22 21:30:50 +00:00
Roardom
a7c38c0590 add: user tickets to profile 2023-07-19 22:40:39 +00:00
Roardom
3b46c7819b refactor: use route model binding for user routes 2023-07-07 00:28:47 +00:00
Roardom
aef482682b refactor: swap comparing ids to is() and isNot 2023-07-07 00:28:47 +00:00
Roardom
9d4789ba91 refactor: require whitespace before statements 2023-07-07 00:27:13 +00:00
HDVinnie
6d85c0f572 update: user warnings
- bump pagination to 10
- The warnings panel is now split by warning types. Automated (Torrents), Manual (Staff) and Soft Deleted (whether manual or automated). The counts in tabs are total whether active or not. The Active warning count and total hit run count are in top right of profile.
2023-07-04 13:33:28 -04:00
HDVinnie
a9de25e9dd fix: multiple bugs 2023-06-27 07:44:48 -04:00
Roardom
d2e36c368e refactor: reduce temporary variables passed to views 2023-06-19 23:25:40 +00:00
Roardom
177c59d88d refactor: swap firstOrFail() for sole() to enforce a single result 2023-06-19 23:18:40 +00:00
HDVinnie
4aa67fe22a Merge branch '7.x.x' into Refund-System 2023-05-20 11:06:12 -04:00
HDVinnie
3f7fe9ab5f PHP Style Change (Laravel Pint CI) 2023-05-01 00:46:36 +00:00
HDVinnie
63a31f9eca fix: profile warnings 2023-04-30 20:44:30 -04:00
Roardom
6e64801e88 update: user profile views 2023-04-27 12:00:49 +00:00
Roardom
2ea2fbb5ab update: cruddify user security 2023-04-11 15:58:54 +00:00
Roardom
05ad4c37b9 add: external tracker support 2023-03-27 04:17:30 -05:00
HDVinnie
3ea06a0a6d Merge branch '6.x.x' into Refund-System 2023-02-07 08:44:57 -05:00
HDVinnie
f4ebee885c update: lint 2023-02-03 22:23:00 -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
6a3de62bdb fix: started and last update in user profile clients 2023-01-31 00:02:03 -06:00
Roardom
985423e267 update: announce 2023-01-04 05:46:02 -06:00
HDVinnie
5cef6484d1 PSR12 Linting 2023-01-01 16:26:37 +00:00
HDVinnie
fc2c3bd1b6 Merge pull request #2517 from Roardom/update-user-general-settings
(Update) User general settings
2023-01-01 11:25:52 -05:00
HDVinnie
27f5e66e31 Merge branch '6.x.x' into pr/2517 2023-01-01 11:22:45 -05:00
HDVinnie
82e9877677 PSR12 Linting 2023-01-01 16:13:35 +00:00
HDVinnie
86dae9fe58 Merge branch '6.x.x' into update-user-privacy 2023-01-01 10:48:48 -05:00
HDVinnie
79482e120d PSR12 Linting 2023-01-01 15:35:37 +00:00