Commit Graph

13 Commits (dev)

Author SHA1 Message Date
Your Name e7b70c6084 refactor: extract duplicate patterns into shared methods
1. Add FractalService with static item() and collection() helpers
   replacing 22 call sites that repeated the 4-line Fractal Manager
   + ArraySerializer boilerplate.

2. Add AccountInterstitial::createFromStatus() factory method
   consolidating 4 identical 15-line blocks that create interstitials
   with status metadata.

3. Add NotificationService::createNotification() to handle the
   repeated pattern of creating, caching, and registering a
   notification in the recipient's feed.

4. Add NotificationService::firstOrCreateNotification() for
   idempotent notifications (share/boost, mention) that should
   only notify once per actor+action+item combination.
4 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.
4 weeks ago
Daniel Supernault 449e374cbe
Update MediaService 1 year ago
Daniel Supernault 837014e06c
Update MediaService, improve activitypub format 1 year ago
Daniel Supernault 7ae61a74ac
Update CreateNote, improve media attachement handling by leveraging the MediaService cache 1 year ago
Daniel Supernault 6cf4363c50
Update MediaService, remove hls_manifest attribute for MastoAPI entities 3 years ago
Daniel Supernault a12712cc88
Update MediaService, add summary attribute for better alt text federation 4 years ago
Daniel Supernault 454b4e21dd
Update Services, fix mastoapi compat 5 years ago
Daniel Supernault c2910e5d42
Update MediaService, return empty array if cantt find status 5 years ago
Daniel Supernault 450154e5af
Update MediaService 5 years ago
Daniel Supernault 14a1367a8f
Federate Media Licenses 5 years ago
Daniel Supernault 09d5198c55
Update StatusTransformers, remove includes and use cached services 5 years ago