Commit Graph

24 Commits (a01c56cb514b21c27d807e28ef21844d87f8074f)

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/ 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 01535a6cfe
Update ApiV1Controller, improve notification filtering 3 years ago
Daniel Supernault 6cdb5bc672
Update Notification logic, remove message and rendered fields 3 years ago
Daniel Supernault b6c06c4b1d
Update NotificationTransformer, fix mediaTag and modLog types 4 years ago
noellabo 2093d1b33b Change ISO-8601 to RFC 3339 EXTENDED 4 years ago
Daniel Supernault 7a9a06e0fd
Update NotificationTransformer 5 years ago
Daniel Supernault 80d9b9399a
Refactor following & relationship logic. Replace FollowerObserver with FollowerService and added RelationshipService to cache results. Removed NotificationTransformer includes and replaced with cached services to improve performance and reduce database queries. 5 years ago
Daniel Supernault d7b6edc018
Update NotificationTransformer 5 years ago
Daniel Supernault 881fa86573
Update NotificationTransformer, handle tagged deletes 6 years ago
Daniel Supernault d63569c120
Add Direct Messages 6 years ago
Daniel Supernault 49dab6fb5a
Update NotificationTransformer, add modlog and tagged types 6 years ago
Daniel Supernault 51642fc40d
Add modlog notifications 7 years ago
Daniel Supernault 2484ed1e6d
Update Api Transformers 7 years ago
Daniel Supernault 30402f8602
Update NotificationTransformer 7 years ago
Daniel Supernault 95bcb50329
Update NotificationTransformer 7 years ago
Daniel Supernault 904a90a849
Update NotificationTransformer 8 years ago
Daniel Supernault 705d4ef942
Update NotificationTransformer 8 years ago
Daniel Supernault 261c33e7d8
Update Api Transformers, force string type for ids 8 years ago
Daniel Supernault 30758e5e67
Update NotificationTransformer 8 years ago
Daniel Supernault 0870b72a97
Update NotificationTransformer 8 years ago
Daniel Supernault fec9741086
Add API NotificationTransformer 8 years ago