Commit Graph

39 Commits (8778273c7c1b90d4764bd66ff1887dcb89608575)

Author SHA1 Message Date
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
Your Name 1617734907 Revert "Merge pull request #6851 from pixelfed/fix/phpstan-auth-request-scope-2"
This reverts commit ce4baf6995, reversing
changes made to 9235cb979a.
4 weeks ago
Your Name 0939f495bb 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
Your Name e7ba43e2e1 fix: add missing use imports to resolve phpstan class.notFound errors
Add missing imports for Log, Cache, DB, FollowerService, StatusService,
LikeService, ReblogService, UserFilterService, AdminProfile, OauthClient,
and fix StatusTimelineTransformer reference (class didn't exist, replaced
with StatusTransformer).
4 weeks ago
Your Name c807a8524c refactor: replace short facade aliases with fully-qualified imports
Convert all 273 short facade alias imports (e.g. 'use Cache;') to their
fully-qualified class names (e.g. 'use Illuminate\Support\Facades\Cache;')
across 193 files.

This resolves 643 PHPStan 'class.notFound' errors caused by the static
analyzer being unable to resolve global aliases, and aligns with modern
Laravel conventions. It also unblocks removing the aliases array from
config/app.php in a future change.

All 107 tests pass.
4 weeks ago
Shift 19880c2ffb
Convert string references to `::class`
PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
4 weeks ago
Daniel Supernault a2be0cb47d
Update CommentController 1 month ago
Shlee 4419054ae5
Update CommentController.php 8 months ago
Daniel Supernault 374344754e
Lint 9 months ago
Daniel Supernault 85124aa642
Fix rendered caption 2 years ago
Daniel Supernault 1d2f76c8e5
Postgres fixes 2 years ago
Daniel Supernault 9eeb7b6741
Update Status caption logic, stop storing duplicate html caption in db and defer to cached StatusService rendering 2 years ago
Daniel Supernault 5e4d4eff9d
Update config cache 3 years ago
Daniel Supernault b6b0837f49
Update CommentPipeline, move reply_count calculation to comment pipeline job and improve count calculation 5 years ago
Daniel Supernault eab4370c84
Update Like, Status and Comment controllers to add StatusService del() method to update counts 6 years ago
Daniel Supernault 90b89cb809
Update MomentUI 6 years ago
Daniel Supernault 81f4ccf979
Update CommentController 7 years ago
Daniel Supernault 45ecad2a07
Update CommentController, fix scope bug 7 years ago
Daniel Supernault 05f659896d
Update CommentController, remove unused show method and update showAll method 7 years ago
Daniel Supernault 3820122af2
Update CommentController, still allow muted users to comment on your posts 7 years ago
Daniel Supernault 60e9d547ae
Fix regression in comment mutes/blocks 7 years ago
Daniel Supernault 93aa65d123
Update CommentController 7 years ago
Daniel Supernault 6fcbace0d8
Update CommentController, increment reply count 8 years ago
Daniel Supernault 855f92d25f
Update CommentController 8 years ago
Daniel Supernault f30ab46de5
Update CommentController 8 years ago
leuc a891bbcc9a cache StatusTransform and invalidate on like, comment and share 8 years ago
Daniel Supernault dc2a012e6e
Update CommentController, prepare for Micro UI 8 years ago
Daniel Supernault 591e50541e
Update CommentController 8 years ago
daniel b8abbdd90f Apply fixes from StyleCI 8 years ago
Daniel Supernault d9ec94ba65
Update CommentController, add showAll() method 8 years ago
Daniel Supernault f7cd91110d Update compiled assets 8 years ago
Daniel Supernault 231884c770 Update view entity encoding 8 years ago
Daniel Supernault eaf465914a Add comment notifications 8 years ago
Daniel Supernault 2a73150586 Update comment url structure 8 years ago
Daniel Supernault dba78c24cc Update CommentController 8 years ago
Daniel Supernault 1b794c8508 Update StatusPipeline 8 years ago
Daniel Supernault 82add854a8 Update CommentController 8 years ago
Daniel Supernault befa82dc04 Update CommentController, remove hashids 8 years ago
Daniel Supernault b3540f189d Add Comment model, migration and controller 9 years ago