Commit Graph

30 Commits (dev)

Author SHA1 Message Date
Your Name 53b698ec48 Revert "StrictArrayParamDimFetchRector"
This reverts commit a28d3df4c4.
6 days ago
Your Name a28d3df4c4 StrictArrayParamDimFetchRector 6 days ago
Your Name 32d1c0e7cc add type to function 6 days ago
Your Name c57e5d8ed7 adding type 6 days ago
Daniel Supernault 9e69d449d5
Update NotificationService 2 weeks ago
Your Name c0f29d4a4b Fix web notifications not loading (#7195)
Notification status hydration compared item_type strictly against
Status::class (App\Models\Status). Rows created before the App\ ->
App\Models\ namespace migration store the legacy 'App\Status' morph-map
alias, so the comparison failed and favourite/comment/mention
notifications came back with no attached status. The web UI filters those
out client-side but keeps paginating (response never empty), leaving the
infinite-scroll loader spinning forever.

- NotificationTransformer + Mastodon NotificationTransformer: match both
  the legacy alias and the current FQCN when hydrating status.
- NotificationService::buildNotification: same alias-aware deleted-item guard.
- NotificationService::getMaxPage/getMinPage: filter out unrenderable
  notifications (status-type without a hydrated status) so the endpoint
  never returns rows the UI discards, fixing pagination termination; warn
  on unexpected notification types.
- Tests for transformer hydration (legacy + current), renderable filtering,
  the unexpected-type warning, and pagination termination.
2 weeks ago
Your Name ef7e485e7d Fix Larastan error: correct Status import in NotificationService
Use App\Models\Status instead of the non-existent App\Status class.
3 weeks ago
Daniel Supernault c9b0ee3bdd
Refactor NotificationService 3 weeks 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
Daniel Supernault 53742fa699
Lint 9 months ago
Daniel Supernault 01535a6cfe
Update ApiV1Controller, improve notification filtering 3 years ago
Daniel Supernault 446ca3a878
Update notification epoch generation 3 years ago
Daniel Supernault 457d5454f8
Update NotificationService, handle empty epoch. Fixes #4689 3 years ago
Daniel Supernault 0210f8aa2a
Update NotificationService, fix order bug 3 years ago
Daniel Supernault 2496386d9b
Update NotificationService, improve cache warming query 3 years ago
Daniel Supernault 949b7bb6ea
Update NotificationService, fix account attribute 4 years ago
Daniel Supernault f6ed560e78
Limit NotificationService to 400 items 4 years ago
Daniel Supernault eba84530aa
Fix mastoapi notification type casting to include comment and share (mention and reblog) notifications 4 years ago
Daniel Supernault 734b30e59a
Fix NotificationService bug returning html response on /api/v1/notifications endpoint when a notification id belonging to a deleted account is rendered by checking AccountService before NotificationTransformer. 4 years ago
Daniel Supernault afe903c36e
Update ApiV1Controller, fix notification entities 5 years ago
Daniel Supernault 4a609dc377
Update NotificationService, fix 500 bug 5 years ago
Daniel Supernault 2d93bc8b51
Update NotificationService 5 years ago
Daniel Supernault d43e6d8d07
Update NotificationService, use zrevrangebyscore for api 5 years ago
Daniel Supernault c369882b48
Update Redis namespace 7 years ago
Daniel Supernault 339a0a3882
Update NotificationService 7 years ago
Daniel Supernault d09b00a70f
Update NotificationService 7 years ago
Daniel Supernault 519c05de32
Update NotificationService 7 years ago
Daniel Supernault b3a9587756
Add NotificationService 8 years ago