I missed some more from the other times (#4744 and #4749). The json check in Authenticate.php has since been upstreamed into laravel, so we don't need to modify that explicitly anymore and can swap it out for laravel's middleware. The RedirectIfAuthenticated middleware now has an option to set the route to redirect to, so we can call that method directly instead of overwriting the method in the middleware. The TrimStrings middleware also now has an option to exclude certain attributes, so we can call that method directly instead of overwriting the method in the middleware.
TrustProxies.php is the only remaining Laravel middleware that is customized, but that can only be replaced with the laravel 11 app structure.
Allows the fetch meta command to work without hitting rate limits on tmdb. Tmdb's rate limit is ~40 per second, but each movie/tv has to send additional http request for each collection, network, company and person, so I figured 2 per second was safe.
We want search results to update as more characters are typed relatively quickly. Unfortunately this is opposite of our goal of a low rate limit. Separating this route into a separate rate limit solves this issue.
This was never intended, and was recently discovered when an old site was migrated to UNIT3D and its users had browser bookmarks to https://domain.tld/index.php. Users browsing from this url have all their links generated with the `index.php` included, include the announce urls in their torrents, which isn't great and causes issues with unit3d-announce.
- 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
- register routes using static ::class references instead of strings and remove any namespace prefixes from the RouteServiceProvider. This convention was adopted by default in Laravel 8. Converted controller action strings to array tuples for improved code completion and static analysis.