Commit Graph

12799 Commits (33dce75f2c91413edb8018f7a7d4922977abc427)
 

Author SHA1 Message Date
Daniel Supernault 33dce75f2c
Pint app/ 4 weeks ago
dansup e1b60d070b
Merge pull request #6882 from pixelfed/shleeable-patch-2
Refactor: Add additional strict modes for testing environments only
4 weeks ago
Shlee de8de9251b
Update AppServiceProvider.php 4 weeks ago
Shlee 1ae0feb129
Update AppServiceProvider.php 4 weeks ago
dansup 8e99e0c316
Merge pull request #6880 from pixelfed/fix/cache-serializable-classes
Laravel 13 prep: add serializable_classes to cache config
4 weeks ago
dansup 90af7d8a2d
Merge pull request #6879 from pixelfed/fix/csrf-middleware-rename
Laravel 13 prep: rename VerifyCsrfToken to PreventRequestForgery
4 weeks ago
dansup e0876c8a97
Merge pull request #6878 from pixelfed/fix/mysql-strict-mode
fix: enable MySQL strict mode and remove defaultStringLength(191)
4 weeks ago
dansup 93553670e5
Merge pull request #6877 from pixelfed/fix/replace-request-get
Laravel 13 prep: replace Symfony deprecated ->get() with ->input()
4 weeks ago
dansup 665221176b
Merge pull request #6874 from pixelfed/fix/api-throttle-middleware
feat: add global throttle:api middleware to the api route
4 weeks ago
Shlee c04fec21fc
Update model loading behavior in AppServiceProvider 4 weeks ago
Shlee 542434785c
Set strict mode to true in database configuration 4 weeks ago
Shlee 35cb9a9dcb
Change DB_STRICT environment variable to true 4 weeks ago
Shlee 323cfc9cf7
Update database.php 4 weeks ago
Shlee 2f466b02d7
Update database.php 4 weeks ago
Your Name ba90d1bd20 feat: add serializable_classes to cache config for Laravel 13 prep
Laravel 13 defaults serializable_classes to false, blocking arbitrary
PHP object unserialization from cache. This project caches CustomFilter
model instances (in getCachedFiltersForAccount), so it must be
explicitly allowlisted.

All other cache usage in this project stores scalars, arrays, or
Fractal-transformed array output — no other classes need allowlisting.
4 weeks ago
Your Name 9958b095dd refactor: rename VerifyCsrfToken to PreventRequestForgery
Prepares for Laravel 13 where VerifyCsrfToken is deprecated in favor
of PreventRequestForgery. The old class remains as an alias in v13 but
will be removed in a future version.
4 weeks ago
Your Name 4320231c1f fix: replace deprecated $request->get() with $request->input()
Symfony 8.0 removes Request::get(). Laravel 13 will support Symfony 8,
so these 11 usages would break on upgrade. Using $request->input()
which checks both query string and request body (same behavior as the
old get() method).
4 weeks ago
Your Name 1b64c59beb fix: enable MySQL strict mode and remove defaultStringLength(191)
- Enable strict mode for MySQL connection to prevent silent data
  truncation, zero-date insertion, and division-by-zero errors.
- Remove Schema::defaultStringLength(191) which was a MySQL 5.7
  workaround no longer needed on MySQL 8.0+ / MariaDB 10.3+.
4 weeks ago
Shlee 08cdac1ef6
Merge pull request #6876 from pixelfed/fix/remove-unused-deps
chore: remove unused direct dependencies
4 weeks ago
Your Name 1696dfacaa chore: remove unused direct dependencies
- Remove endroid/qr-code: never imported in app code; only
  bacon/bacon-qr-code is used directly (for 2FA QR generation).
- Remove nesbot/carbon: already pulled in transitively by
  laravel/framework, laravel/horizon, and laravel/pulse.
4 weeks ago
Shlee 1f3e472a7e
Merge pull request #6875 from pixelfed/fix/unpin-symfony-http-foundation
fix: unpin symfony/http-foundation to allow patch updates
4 weeks ago
Your Name 0c849ca4e7 fix: unpin symfony/http-foundation to allow patch updates
Changes constraint from exact '7.4.13' to '^7.4.13'. The pin was
introduced for CVE-2026-48736 but is overly restrictive — any 7.4.x
release >= 7.4.13 includes the fix. This allows future security
patches to install via composer update.

Note: Symfony 8.x is blocked by laravel/framework ^12 which requires
symfony/http-foundation ^7.2.0. Symfony 8 support arrives with Laravel 13.
4 weeks ago
Shlee 0837968fad
Update AppServiceProvider.php 4 weeks ago
Your Name ed90e619fb feat: add throttle:api middleware to the api route group
Adds a global rate limiter (240 req/min per user or IP) to all API
routes. Previously rate limiting was only applied ad-hoc on individual
routes, leaving some endpoints unprotected.
4 weeks ago
Shlee f81d7ba666
Merge pull request #6873 from pixelfed/fix/deprecated-starts-with
fix: replace deprecated starts_with() with str_starts_with()
4 weeks ago
Your Name 26b8a0a6b0 fix: replace deprecated starts_with() with str_starts_with()
The starts_with() helper was removed in Laravel 6. Use PHP 8's native
str_starts_with() instead.
4 weeks ago
Shlee cf714c6fb7
Merge pull request #6872 from pixelfed/larastan0
refactor: replace $fillable with $guarded = [] across all models
4 weeks ago
Your Name 570a30d037 refactor: replace $fillable with $guarded = [] across all models
Aligns all models with the project convention (see .ai/rules/models.md).
Model::shouldBeStrict() in non-production will catch any issues early.
4 weeks ago
Shlee 2fbb9fa428
Merge pull request #6871 from pixelfed/larastan0
polish
4 weeks ago
Your Name c891f34df6 polish 4 weeks ago
Shlee b5c9f2d062
Merge pull request #6870 from pixelfed/shleeable-patch-1
Update DOCKER_COMPOSE_SETUP.md
4 weeks ago
Shlee 4086f07783
Fix duplicate command in Docker Compose setup 4 weeks ago
Shlee e2c6162b35
Update DOCKER_COMPOSE_SETUP.md 4 weeks ago
Shlee 1b3c8150b0
Merge pull request #6869 from pixelfed/larastan0
Larastan0
4 weeks ago
Your Name f54e6280bc comment dead code 4 weeks ago
Your Name ea2d054a40 Revert "fix: remove dead publicApi/homeApi methods from TimelineController"
This reverts commit 8cf5321566.
4 weeks ago
Your Name 8cf5321566 fix: remove dead publicApi/homeApi methods from TimelineController
- publicApi referenced non-existent StatusTimelineTransformer class
- Neither method is routed anywhere
- Removes unused imports (Fractal, Cache, Status, Profile, UserFilter)
4 weeks ago
Shlee d4fc25907c
Merge pull request #6868 from pixelfed/larastan0
fix: remove dead RemoteFollowPipeline (old code before AP)
4 weeks ago
Your Name 7042ea5367 fix: remove dead RemoteFollowPipeline (references uninstalled HttpSignatures package)
- Delete app/Jobs/RemoteFollowPipeline/RemoteFollowPipeline.php
- Delete app/Jobs/RemoteFollowPipeline/RemoteFollowImportRecent.php
- Neither job is dispatched anywhere in the codebase
- Remote follow is handled by ActivityPub Inbox and FollowPipeline
4 weeks ago
Shlee eb8806f37d
Merge pull request #6867 from pixelfed/fix/passport-v13-cleanup
fix: remove deprecated Passport::personalAccessClientId()
4 weeks ago
Your Name 5a364be58b fix: remove deprecated Passport::personalAccessClientId() and enableImplicitGrant()
- Remove Passport::personalAccessClientId() (removed in Passport v13, auto-discovers now)
- Remove Passport::enableImplicitGrant() (legacy grant, no clients use it)
- Flatten config instance.oauth.pat to pat_enabled (remove dead pat.id key)
- Add OAUTH_PAT_ENABLED=false to .env.example and .env.docker.example
- Show swal alert when PATs disabled instead of hidden API error
- Improve store() error handling to surface 403 messages in the UI
- Remove OAUTH_PAT_ID row from admin diagnostics blade
4 weeks ago
Shlee 190e7da6e1
Merge pull request #6866 from pixelfed/tests/critical-path-smoke-tests
Tests/critical path smoke tests
4 weeks ago
Your Name 6a34458c3a Merge branch 'staging' into tests/critical-path-smoke-tests
# Conflicts:
#	app/Http/Controllers/Settings/ExportSettings.php
#	app/Http/Controllers/Settings/HomeSettings.php
#	app/Http/Controllers/Settings/PrivacySettings.php
#	app/Http/Controllers/Settings/SecuritySettings.php
#	app/Http/Controllers/SettingsController.php
4 weeks ago
Shlee 6dd0604133
Merge pull request #6865 from pixelfed/shleeable-patch-1
Update AccountController.php
4 weeks ago
Shlee 3c6280111e
Update AccountController.php 4 weeks ago
Shlee 8778273c7c
Merge pull request #6854 from pixelfed/fix/phpstan-auth-request-scope-3
Larascan: Replace Auth::user() with $request->user()
4 weeks ago
Your Name ffcef3eb2d fix: replace Auth facade with $request->user() in request-scoped classes
Replace Auth::user() with $request->user() and Auth::check() with
$request->user() !== null (or ! $request->user()) across all
controllers and middleware that have access to the request object.

This resolves 99 larastan.noAuthFacadeInRequestScope errors and
improves Octane compatibility.

For protected helper methods without $request in scope, uses the
request() helper instead.

Methods that previously lacked a Request parameter but used Auth
facade now accept Request $request via Laravel's auto-injection.
4 weeks ago
Shlee 827a56be00
Merge pull request #6861 from pixelfed/tests/critical-path-smoke-tests-clean
Tests/critical path smoke tests clean
4 weeks ago
Your Name 47d98bfb55 revert: restore original GitHub Actions workflow names 4 weeks ago
Your Name a486f509a5 test: add auth scope migration tests and update CI action versions
AuthScope/RequestUserTest: 22 tests verifying all controllers and
middleware that were migrated from Auth::user() to $request->user().
CI: update to checkout@v7, cache@v6
4 weeks ago