Roardom
af7bb77acc
fix: error 500 on similar page when filter returns 0 results
...
The similar page assumes that a torrent exists for a torrent, otherwise returning a 404. However, if a user uses the search on the similar page, and uses a search query that returns 0 torrents, the assumption that a torrent exists breaks. In this case, we now fall back to an empty array instead.
2025-12-02 11:30:45 +00:00
Roardom
c20e0e366f
Merge pull request #4802 from Roardom/native-password-resets
...
(Refactor) Swap fortify for native laravel functions for password resets
2025-12-02 08:44:23 +00:00
Roardom
52e9c53f13
fix: cast floor to int to ensure int return type
...
There are no valid cases in the contexts where this function is used where the float will be greater than the range of the int (which is why the `min` functionr returns `mixed`)
2025-12-02 07:42:04 +00:00
Roardom
d93a7b0cdd
fix: donation package values should be typed as nullable
2025-12-02 07:41:02 +00:00
Roardom
f1dd0eabe3
fix: torrent igdb should be typed as nullable
2025-12-02 07:41:02 +00:00
Roardom
d10df2a8c2
fix: ticket notification shouldSend logic
...
Regression from #4274 .
2025-12-02 07:41:02 +00:00
Roardom
200b2408e8
fix: nullable group conditional requirements
...
These columns are nullable.
2025-12-02 07:41:02 +00:00
Roardom
52af17d437
update: phpstan
...
To help checking for new php 8.5 compatibility
2025-12-02 07:41:01 +00:00
Roardom
2c09474570
refactor: swap fortify for native laravel functions for password resets
...
First step in replacing fortify.
2025-12-02 05:22:10 +00:00
Roardom
48f62be3f3
Merge pull request #5018 from Roardom/failed-login-attempt-blocking
...
(Update) Block ip addresses after failed login attempts
2025-10-20 22:23:12 +00:00
Roardom
2411d5362a
update: block ip addresses after failed login attempts
2025-10-13 21:11:55 +00:00
Roardom
555befb35d
Merge pull request #5021 from Roardom/chatter-types
...
(Refactor) Add types to Chatter event
2025-10-07 00:48:15 +00:00
Roardom
80ff243ad6
Merge pull request #5026 from Roardom/move-language-model
...
(Refactor) Move Language class from models to helpers
2025-10-07 00:46:49 +00:00
Roardom
6f15e43223
refactor: add types to Chatter event
2025-10-03 19:50:00 +00:00
Roardom
d873ee348c
Merge pull request #5022 from Roardom/remove-dead-ping-code
...
(Remove) Dead Ping event
2025-10-03 19:33:02 +00:00
Roardom
13422a553b
refactor: move Language class from models to helpers
...
It's not exactly an eloquent model.
2025-10-03 19:17:18 +00:00
Roardom
beb1596ee3
Merge pull request #5020 from Roardom/refactor-audible-status-bool
...
(Refactor) Use boolean for user audible
2025-10-01 16:26:07 +00:00
Roardom
349fa0fbab
remove: dead Ping event
...
As far as I can tell, this class isn't used for anything. Instead, anything that would use it would use Chatter with the `new.ping` type.
2025-10-01 04:32:07 +00:00
Roardom
ec9b19ffbf
refactor: use boolean for user audible
...
Instead of int.
2025-09-30 06:58:59 +00:00
Roardom
2c6457e1af
fix: docblock syntax error in TorrentTools helper
2025-09-30 04:00:22 +00:00
Roardom
74ef2c3bdd
refactor: remove torrent notifyUploader() function
...
Comments notifications are already created directly when the comment is created, so the thank portion can just be inlined as well.
2025-09-18 11:19:06 +00:00
HDVinnie
bf0b98fd5f
Merge pull request #4957 from Roardom/cache-flexible
2025-09-12 13:22:11 -04:00
Roardom
2a3270e748
update: use cache()->flexible() to improve response times
2025-09-12 01:43:47 +00:00
Roardom
326c09367b
update: automatically remove abandoned torrent reseed requests
2025-09-12 01:36:24 +00:00
Roardom
ac3c1383d3
update: larastan dependency
2025-09-08 02:49:19 +00:00
Roardom
a47e1d5c91
fix: ci
...
Some of these errors are gone now.
2025-09-03 03:34:27 +00:00
HDVinnie
60e481c654
Merge pull request #4909 from Roardom/fix-some-eloquent-api-resource-types
2025-08-21 09:44:15 -04:00
Roardom
84ddc74447
fix: most phpstan types in eloquent api resources
2025-08-21 00:50:13 +00:00
Roardom
6a703e810b
fix: most phpstan types in donation controllers
2025-08-19 19:39:30 +00:00
Roardom
61c0c29e9f
refactor: use php 8.4 property hooks for livewire computed properties
...
Less magic, and works well. Saw this trick in the Laracon US 2025 Livewire presentation.
2025-08-16 10:48:12 +00: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
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
Roardom
d458f397f2
fix: phpstan ci
...
Some errors were missed recently.
2025-06-20 00:54:25 +00:00
Roardom
51aa570cbf
refactor: remove unused middlewares
...
These middlewares are the same as what exists in laravel. We can directly use Laravel's middlewares in Kernel.php instead of importing them and not overwriting anything.
2025-06-05 05:55:39 +00:00
HDVinnie
53df1d01a5
Merge pull request #4729 from Roardom/offset
...
(Update) Improve cheated torrent algorithm
2025-05-28 20:31:24 -04:00
Roardom
596019ff53
update: improve cheated torrent algorithm
2025-05-28 12:26:59 +00:00
Roardom
777cab49fa
fix: don't hardcode websockets port in csp config
...
Allows using websocket on other ports specified in the VITE_ECHO_ADDRESS env variable.
2025-05-27 20:44:39 +00:00
HDVinnie
3bb9d6be2a
update: phpstan-baseline.neon
2025-05-26 22:02:07 -04:00
AnabolicsAnonymous
e831363321
chore: phpstan ignoredError count
2025-05-25 02:01:12 -05:00
Roardom
cead2c21a7
fix: ci from phpstan update
2025-05-21 17:10:28 +00:00
HDVinnie
f8440083a6
chore: larastan ci
2025-04-14 21:26:13 -04:00
Roardom
ae33c74f2b
refactor: prefix tmdb metadata models with tmdb
...
Will help for when there exists other metadata sources available (such as already done for igdb)
Step 4 in cleaner meta fetching code.
2025-03-17 20:41:01 +00:00
Roardom
8fde78124b
refactor: save igdb games to the database
...
Step 1 towards cleaner meta fetching code.
Users with a game category must run `php artisan fetch:meta` after migration.
2025-03-11 19:48:25 +00:00
HDVinnie
5e4b0db9ca
Merge pull request #4540 from HDInnovations/Composer-Dependencies
2025-03-09 09:55:48 -04:00
Roardom
7ba3881834
fix: update phpstan baseline
...
This error is no longer present after dependency updates.
2025-03-09 13:09:40 +00:00
Roardom
b368809753
update: remove phpstan nullsafe.neverNull rule
...
Imo, this is a bad rule. Although it is correct in that ?? will shortcircuit any null checks, I strongly prefer it being explicit as to which properties in the chain are nullable and which aren't. In fact, I wish we could enforce explit ?-> over -> when the property is nullable so that it's obvious which properties are null or not.
2025-03-06 10:06:30 +00:00
Roardom
8122c6a5bc
fix: phpstan pagination generics
2025-03-02 09:14:09 +00:00
Roardom
ad8b0da80b
fix: phpstan property.phpDoctype
...
Larastan uses a different doctype for these properties
2025-03-02 07:11:25 +00:00
Roardom
18b8e0bf01
fix: add generics to UserNotification and UserPrivacy docblocks
2025-03-02 07:01:27 +00:00
Roardom
2ab932ae9e
fix: phpstan arrayFilter.same
...
$data is created from looping over an original array, and adding arrays always containing the keys old and new. Because the conents of the array passed to array_filter is always either empty, or contains one or more arrays with keys `old` and `new`, there will never be any elements filtered.
2025-03-02 06:58:35 +00:00