Commit Graph

21 Commits (d4e7948a2fd41ff04e6dbb3020297bc5bac4ddde)

Author SHA1 Message Date
Your Name 5ebc1af91e BATCH 1 7 days ago
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
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.
1 month ago
Daniel Supernault 53742fa699
Lint 9 months ago
Shlee 3b8f13784b
Update Bouncer.php - Called 'count' on Laravel collection, but could have been retrieved as a query. 🪪 larastan.noUnnecessaryCollectionCall 11 months ago
Daniel Supernault 18cddd43f3
Update Bouncer, adjust advanced Autospam logic 3 years ago
Daniel Supernault 053b30bca0
Update nav and Bouncer 3 years ago
Daniel Supernault 56ec083db5
Update Bouncer 3 years ago
Daniel Supernault d5f63f8a71
Update AutoSpam Bouncer, generate notification on positive detections 3 years ago
Daniel Supernault 4e1d0ed596
Add admin report email notifications 4 years ago
Daniel Supernault 6033d83726
Fix unlisted post web redirect and api response 4 years ago
Daniel Supernault 19d140b020
Update FollowerService 5 years ago
Daniel Supernault f0d4c17236
Update Autospam service, use silent classification for better user experience 5 years ago
Daniel Supernault f3a2b354db
Update bouncer 6 years ago
Daniel Supernault 37dbb3de29
Update MediaStorageService, dispatch deletes to MediaDeletePipeline 6 years ago
Daniel Supernault 6d078377f1
Update AdminController 6 years ago
Daniel Supernault 5ac1746aff
Update bouncer 6 years ago
Daniel Supernault 7d818197bb
Update antispam bouncer, change recent from 1 week to 3 months 6 years ago
Daniel Supernault b892bcf0e8
Add autospam feature 6 years ago