Commit Graph

13 Commits (bce33a51d83fb862fddcd908a0967186c520ca99)

Author SHA1 Message Date
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 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
Daniel Supernault 33dce75f2c
Pint app/ 1 month 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
Daniel Supernault 3a428366fb
Update NotificationTransformer, add missing types 6 years ago
Daniel Supernault c4506ebd71
Update NotificationTransformer, fixes #2389 6 years ago
Daniel Supernault 6300789115
Update Api Transformers, fixes #2234 6 years ago
Daniel Supernault 1a0c1afedf
Update NotificationTransformer, add modlog type 7 years ago
Daniel Supernault 7243489088
Update mastodon api transformers 7 years ago
Daniel Supernault abcc62a3fc
Update NotificationTransformer 7 years ago
Daniel Supernault 68e09477d0
Update NotificationTransformer 7 years ago
Daniel Supernault 9b130cfe9b
Add new api transformers 7 years ago