Commit Graph

3008 Commits

Author SHA1 Message Date
HDVinnie
eb6ca2e0c0 Merge pull request #4921 from Roardom/request-eager-load 2025-08-28 16:51:50 -04:00
Roardom
6043fae6b0 fix: eager loading on torrent request 2025-08-25 06:02:17 +00:00
HDVinnie
fcc64d8e72 Merge pull request #4910 from Roardom/remove-infohash 2025-08-21 09:45:11 -04:00
Roardom
e1486613bb security: randomize info_hash upon upload and hide it from users
Require a user to download a .torrent file in order to view the info_hash.
2025-08-20 12:27:12 +00:00
Roardom
6a703e810b fix: most phpstan types in donation controllers 2025-08-19 19:39:30 +00:00
HDVinnie
80b723dcaf Merge pull request #4888 from Roardom/unfollow-button 2025-08-10 11:55:51 -04:00
Roardom
902fd94b0c add: unfollow button to following page 2025-08-10 00:35:57 +00:00
HDVinnie
df4e9782c6 Merge pull request #4886 from Roardom/about-length 2025-08-04 12:35:14 -04:00
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
e2212b38f0 add: user unregistered info hash page
Allow users to find torrents they're announcing that have been deleted on site.
2025-08-04 06:23:51 +00:00
HDVinnie
5600e18fb9 Merge pull request #4861 from Roardom/fix-null-quicksearch
(Fix) Quicksearch searching by null throws error
2025-07-22 17:29:00 -04:00
Roardom
26e27f7300 fix: quicksearch searching by null throws error
The middleware automatically converts empty strings to null. We want to accept empty strings here for the search to work. Currently, the regex throws an error when a null is passed to it.
2025-07-22 09:26:21 +00:00
Roardom
820946c2b6 refactor: chatbox user chat status
Only save the user's chat status in one place, and sync it with the server when it's updated.
2025-07-20 10:18:17 +00:00
HDVinnie
f15be18aef Merge pull request #4853 from Roardom/fix-group-cache 2025-07-19 08:34:22 -04:00
Roardom
48adfce1af fix: group cache
Laravel returns numeric strings when an int is saved to cache, which breaks a lot of the logic here. Fixed by removing cache everywhere except rss and middleware, and in those two spots, caching the whole group and not just the id of the group.
2025-07-19 11:59:00 +00:00
Roardom
8618aa1474 update: improve imdb regex
Lookarounds are not performant. Also, fix the client side regex validation to allow links.
2025-07-19 08:22:12 +00:00
Roardom
bd254f5056 fix: wish torrents link 2025-07-18 12:46:44 +00:00
HDVinnie
170f704d0c add: user homepage block ordering
- closes #4791
- uses alpinejs drag and drop function
- renames visible columns for better consistency
- eager loads user settings for block performance
2025-07-15 18:04:18 -04: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
HDVinnie
976f7f673a fix: ticket attachment permissions
Co-Authored-By: Anabol <169519064+AnabolicsAnonymous@users.noreply.github.com>
2025-07-05 14:34:51 -04:00
HDVinnie
8bac01a5de Merge pull request #4811 from AnabolicsAnonymous/follow-controller-validation 2025-07-03 19:57:00 -04:00
HDVinnie
21445935b5 Merge pull request #4810 from Roardom/replaced-images
(Fix) Delete prior article/category/playlist image upon new image upload
2025-07-02 20:05:45 -04:00
AnabolicsAnonymous
a13a8f0e67 add: follow validation checks 2025-07-02 03:27:07 -05:00
Roardom
fb0f77c920 fix: delete prior article/category/playlist image upon new image upload 2025-06-30 08:41:28 +00:00
Roardom
4a8248d576 refactor: rename top10 to trending
It is more than just a top 10 page now.
2025-06-30 07:39:55 +00:00
HDVinnie
ea36520af1 Merge pull request #4800 from Roardom/enum-strings 2025-06-29 13:32:57 -04:00
HDVinnie
be4c33a390 Merge pull request #4807 from Roardom/dont-reset-requests 2025-06-29 13:32:34 -04:00
Roardom
db2f1f2c99 fix: only reset unapproved requests when torrent is deleted
If the request has already been paid out, it should not be reset.
2025-06-28 04:28:14 +00:00
HDVinnie
3f5b275df4 Merge pull request #4801 from Roardom/two-factor-timeline
(Update) Require 24 hours after enabling 2fa before inviting
2025-06-26 11:46:16 -04:00
Roardom
da7a606d3a update: require 24 (configurable) hours after enabling 2fa before inviting
Previous (less secure) behavior can be restored by setting the config value to 0.
2025-06-23 06:33:03 +00:00
HDVinnie
c3cb6e6797 Merge pull request #4778 from Roardom/rss-auth-guard 2025-06-22 20:48:26 -04:00
HDVinnie
5a5d0b597e Merge pull request #4795 from Roardom/fix-auth-image-404 2025-06-22 20:42:09 -04:00
Roardom
46bfccc8b7 refactor: use enums for auth guards, middleware groups, and rate limits 2025-06-22 20:00:02 +00:00
Roardom
a3063fb8c5 refactor: normalize request votes
Cleans up the code and better normalization practice. Should this ever be a performance issue (such as sorting by vote count on request search page), then it'd probably be better to use meilisearch, but currently with 60k bounties, the query time only takes ~300ms compared to the 40ms previously.
2025-06-22 00:49:41 +00:00
Roardom
abb9cca896 fix: missing null checks in authenticated images
The `->path()` method only accepts string and does not accept nulls.
2025-06-21 09:14:07 +00:00
Roardom
702ac45cb6 fix: normalize request claims
Errors happen when requests have the claimed flag but don't actually have a claim record (or vice-versa).
2025-06-20 03:08:01 +00:00
Roardom
d458f397f2 fix: phpstan ci
Some errors were missed recently.
2025-06-20 00:54:25 +00:00
HDVinnie
ca504efaa1 refactor: create zips in-memory instead of on filesystem
Co-Authored-By: Roardom <78790963+Roardom@users.noreply.github.com>
2025-06-19 12:18:54 -04:00
Roardom
9e63d82297 add: store unread news notifications 2025-06-18 05:04:40 +00:00
Roardom
21b89e5f26 refactor: use rss rsskey auth guard 2025-06-17 07:59:44 +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
Roardom
02b7fa9a19 fix: include default stylesheet users in stats count 2025-06-09 08:14:35 +00:00
Roardom
1c7ab37676 fix: refresh meta button
Previously, the button would check if the cache key doesn't exist, then if so, add the cache key. But the middleware of ProcessMovieJob and ProcessTvJob will skip the update if the cache key is present.

Change the logic so that only the Job adds the cache key.

fixes #4745
2025-06-07 17:39:57 +00:00
HDVinnie
33698c9600 Merge pull request #4738 from Roardom/yearly-overview-mariadb-fix 2025-06-02 08:03:12 -04:00
Roardom
dde4a8e2a0 fix: yearly overview query on mariadb
Same as #4474.
2025-06-02 04:24:13 +00:00
HDVinnie
3dd529d0ba fix: dashboard_torrents count to not include soft deletes 2025-05-30 09:30:47 -04:00
HDVinnie
a44ddd5f4c Merge pull request #4733 from Roardom/cheated-torrent-tolerance
(Update) Exclude cheated torrents under 5% the torrent size
2025-05-29 16:54:03 -04:00
HDVinnie
76f73686fa Merge pull request #4731 from Roardom/chars-written
(Update) Add characters typed user stat
2025-05-29 16:53:19 -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
913f339825 update: add characters typed user stat 2025-05-29 01:26:07 +00:00