Commit Graph

28 Commits (ccfd39fd908fd136b2e3fdbd11446c71ebef55a9)

Author SHA1 Message Date
Your Name 277b8aa970 Use now() helper instead of Carbon::now() for current-time access
Aligns with the app's dominant convention (413 now()/today() call
sites vs 12 Carbon::now()). Carbon::parse() calls are untouched since
they parse arbitrary date strings, not current-time access.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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 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.
1 month ago
Your Name 89c54bbd84 bad logic 8 months 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 f5ff65ffc7 ImageOptimizePipeline defensive checks 11 months ago
Daniel Supernault 2e719bd008
Update media storage pipeline, improve support for non-local filesystems 1 year ago
Daniel Supernault ab9c13fe0d
New supported formats, Preserve ICC Color Profiles, libvips support
Update image pipeline to handle avif, heic and webp and preserve ICC color profiles and added libvips support.
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 dd16189fc8
Update ImageResize job, add more logging 3 years ago
Daniel Supernault e76289e4e2
Update ImageOptimizePipeline, improve support for disabling image optimizations 4 years ago
Daniel Supernault 5a67e9f93b
Update image pipeline, dispatch jobs to mmo queue and add "replace_id" param to v2/media endpoint to dispatch delayed MediaDeletePipeline job for original media id to improve media gc on supported clients 4 years ago
Daniel Supernault 488561c270
Update ConfigCacheService, fail to fallback earlier 5 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