Commit Graph

26 Commits (a5d413a59428e88eb0b69f68d4f021f1caceccb1)

Author SHA1 Message Date
Your Name a5d413a594 ExplicitReturnNullRector 5 days ago
Your Name 0435d08568 RemoveAlwaysElseRector 5 days ago
Your Name 1905da723d Validate publicKey.id host on inbox actor ingest to prevent key_id poisoning 2 weeks ago
Shlee 4acc0dd528
Update DeleteWorker.php 2 weeks ago
Your Name c0cde2f682 refactor: move 52 legacy models from App\ to App\Models\
Move all Eloquent models from the app/ root directory to app/Models/
for consistency with modern Laravel conventions. The project already had
54 models in App\Models; this migrates the remaining 52 legacy models.

Changes:
- Move 52 model files from app/ to app/Models/
- Update namespace declarations in each model
- Update all ~1000 import references across the codebase
- Add Relation::morphMap() in AppServiceProvider for backward
  compatibility with existing polymorphic database records
- Add missing HasSnowflakePrimary imports for models that relied
  on same-namespace resolution
4 weeks ago
Your Name 2b1c9c818b polish 4 weeks ago
Your Name ccd75dd903 fix: resolve undefined variable bugs (phpstan variable.undefined)
- AdminReportController: fix closure param name and remove reference to
  undefined $meta variable
- GroupsPostController: replace $status with $gp (the actual GroupPost
  variable in scope)
- PortfolioController: replace undefined $metadata with null
- DeleteWorker: remove Cache::set() call with undefined $key
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
Daniel Supernault 53742fa699
Lint 9 months ago
Your Name 72e840345e Fix PHPStan 'empty() always exists and is not falsy' errors
- Remove redundant empty() checks where variables are guaranteed to exist and be non-falsy
- Replace empty() with simple null/false checks where appropriate
- Maintain original logic while fixing static analysis issues
- Affected files:
  - app/Http/Controllers/GroupController.php
  - app/Http/Controllers/ProfileAliasController.php
  - app/Jobs/ImageOptimizePipeline/ImageUpdate.php
  - app/Jobs/InboxPipeline/DeleteWorker.php
  - app/Jobs/InboxPipeline/InboxValidator.php
  - app/Jobs/InboxPipeline/InboxWorker.php
  - app/Jobs/ProfilePipeline/HandleUpdateActivity.php
  - app/Rules/ExpoPushTokenRule.php
  - app/Services/AutospamService.php
  - app/Services/CollectionService.php
  - app/Services/NotificationAppGatewayService.php
  - app/Services/WebfingerService.php
  - app/Util/ActivityPub/Helpers.php
11 months ago
Your Name 157eae101c InboxPipeline defensive checks 11 months ago
Daniel Supernault 419c0fb0fb
Updaet InboxPipelines, improve handling of missing signature validation headers 4 years ago
Daniel Supernault 31fc65fc74
Update AP Inbox 4 years ago
Daniel Supernault 36b88901f3
Update AP Inbox 4 years ago
Daniel Supernault e6c1604d43
Update InboxPipeline, add inbox job queue and separate http sig validation from activity handling 4 years ago
Daniel Supernault a3b67a88dc
Update jobs timeout 4 years ago
Daniel Supernault bce1d547e7
Update InboxPipeline 4 years ago
Daniel Supernault 1fac8d545c
Update InboxPipeline 4 years ago
Daniel Supernault bb12001992
Update InboxPipeline, bump request timeout from 5s to 60s 4 years ago
Daniel Supernault 99fb80bf5d
Update InboxPipeline, fix peertube attributedTo parsing 4 years ago
Daniel Supernault 6d6a033a54
Update DeleteWorker, remove cache lock 4 years ago
Daniel Supernault 247c9ec5f8
Update DeleteWorker pipeline, increase timeout 4 years ago
Daniel Supernault cb2392f351
Update FederationController 4 years ago
Daniel Supernault b424691110
Update DeleteWorker, fixes #3338 5 years ago
Daniel Supernault 7f4213924f
Update job queue, separate deletes into their own queue 5 years ago
Daniel Supernault 57e0a741ab
Add FanoutDeletePipeline 5 years ago