Commit Graph

21 Commits (252dea7016b961e81fb692730d6001412f878dda)

Author SHA1 Message Date
Your Name 252dea7016 Track media storage quota via an explicit lifecycle enum
Charge the raw upload size immediately (enforce on raw, never under-count),
correct down to the optimized size in the finalize job, and refund on delete.
Each transition is guarded by media.quota_status so retries can't double-apply.
1 week 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 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
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
Daniel Supernault 2e719bd008
Update media storage pipeline, improve support for non-local filesystems 1 year ago
Daniel Supernault c36cc07b2c
Update avif support, and fix reply permalinks 2 years ago
Daniel Supernault a72188a7db
Update image pipeline, use config_cache 3 years ago
Daniel Supernault e76289e4e2
Update ImageOptimizePipeline, improve support for disabling image optimizations 4 years ago
Daniel Supernault 069a0e4ae1
Add WebP support 5 years ago
Daniel Supernault be6d12fcb6
Update MediaPipeline, handle cloud object storage 6 years ago
Daniel Supernault 234f72f3aa
Update ImageOptimizePipeline, add skip_optimize and MediaStorageService support 6 years ago
Daniel Supernault 1199fb89f6
Update ImageUpdate pipeline job 7 years ago
Daniel Supernault 39f4b470b3
Update DiscoverController 7 years ago
Daniel Supernault 8e5bdf6368
Update ImageOptimizePipeline 8 years ago
Daniel Supernault 49d825f5b2
Update ImageOptimizePipeline 8 years ago
Daniel Supernault 33b4d354e7
Update ImageOptimize pipeline 8 years ago
daniel b8abbdd90f Apply fixes from StyleCI 8 years ago
Daniel Supernault b0babe819d
Update ImageUpdate job, skip non gd-compatible mime types from generating a thumbnail 8 years ago
Daniel Supernault 17e099c206
Update ImageUpdate job, skip non gd-compatible mime types 8 years ago
Daniel Supernault 56b18f3e08 Update ImageOptimizePipeline, do not optimize gifs 8 years ago
Daniel Supernault 343757b1ea Add ImageOptimizePipeline 8 years ago