Commit Graph

94 Commits (f018004b56d8965b46d5febb0380636ad5530ef2)

Author SHA1 Message Date
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 54cfdf3c2b refactor: add return type declarations to controller methods
Adds explicit return type declarations to 498 controller methods
across 88 files. Types inferred from return statements:

- JsonResponse for response()->json() returns
- RedirectResponse for redirect()/back() returns
- View (contract) for view() returns
- Response for response() returns
- void for methods with no return value
- array for array returns
- string/int/bool for scalar returns

Also fixes 3 methods with incorrect bare returns:
- AvatarController::deleteAvatar - bare return → json response
- ImportPostController::checkPermissions - bare return → true
- RemoteAuthController::accountToId - bare return → empty array
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 04bf75fb68
Revert inbox changes 10 months ago
Shlee d8c9d72f11
Update FederationController.php 11 months ago
Daniel Supernault 207bb36c89
Increase username length limit from 15 to 30 2 years ago
Daniel Supernault 4ca7c6c328
Add preliminary Authorize Interaction support 2 years ago
Daniel Supernault ad30498dbc
Lint 2 years ago
Daniel Supernault 24194f7d16
Update FederationController, add webfinger support for actor uri. Fixes #5068 2 years ago
Daniel Supernault 5071aaf408
Update activitpub setting, use config_cache() 3 years ago
Daniel Supernault fb0bb9a34f
Update Federation, use proper Content-Type headers for following/follower collections 3 years ago
Daniel Supernault dec061f5ae
Update FederationController, add proper statuses counts 3 years ago
Daniel Supernault 3204fb9669
Update FederationController, add proper following/follower counts 3 years ago
Daniel Supernault 9fcccca910
Update FederationController, fix double lock bug 4 years ago
Daniel Supernault 2865f59a79
Update FederationController 4 years ago
a e6e16d2cdd Fix: Use correct response type and remove Accept from http signature 4 years ago
Daniel Supernault 2180a2de3b
Update FederationController, improve inbox/sharedInbox delete handling 4 years ago
Daniel Supernault 8ba338640f
Update FederationController, add two new queues (follow, shared) to prioritize follow request handling 4 years ago
daniel 6157e7a501
Merge pull request #3932 from pixelfed/fix-content-type
fix typo: http -> https
4 years ago
a e380868b44 fix typo: http -> https 4 years ago
Daniel Supernault e08869cbfc
Update FederationController, fix outbox 4 years ago
a 6bf1bea325 Fix: Use correct Content-Type over ActivityPub
This was causing federation issues
4 years ago
Daniel Supernault 25bc08adb9
Update FederationController 4 years ago
Daniel Supernault 6e3c8097f1
Update FederationController, add instance actor profile to webfinger 4 years ago
Daniel Supernault 4423231ebb
Update FederationController 4 years ago
Daniel Supernault cb2392f351
Update FederationController 4 years ago
Daniel Supernault a0e15d89e2
Update FederationController, fix webfinger endpoint 5 years ago
Daniel Supernault 4ab99d66d1
Update FederationController 5 years ago
Daniel Supernault 745c35807c
Update FederationController, increase webfinger cache ttl from 12 hours to 14 days 5 years ago
Daniel Supernault 4505d1f0f9
Update FederationController, move well-known to api middleware and cache webfinger lookups 5 years ago
Daniel Supernault 7f4213924f
Update job queue, separate deletes into their own queue 5 years ago
Daniel Supernault 53134208fe
Update config() to config_cache() 5 years ago
Daniel Supernault deb6f1153f
Update FederationController, return 404 for invalid webfinger addresses. Fixes #2647 6 years ago
Daniel Supernault 2d11317ceb
Update webfinger util, fail on invalid webfinger url 6 years ago
Daniel Supernault 4733ca9fb9
Add shared inbox 6 years ago
Daniel Supernault d63569c120
Add Direct Messages 6 years ago
Daniel Supernault 33c0db3a9a
Update FederationController, fix typo 6 years ago
Daniel Supernault 0309f8a4e1
Update FederationController, remove old code 6 years ago
Daniel Supernault 29ce725c70
Update FederationController, dispatch inbox jobs now on high queue 6 years ago
Daniel Supernault 3ec5102c24
Update FederationController, move signature validation to InboxValidator job 6 years ago
Daniel Supernault 302ff874cb
Update webfinger logic, fixes #2180 6 years ago
Daniel Supernault c84cee5ae0
Update ActivityPub Outbox, fixes #2100 7 years ago
Ashley Hull 9c84df49ff typo 7 years ago
Daniel Supernault 279c57d9a5
Update FederationController 7 years ago
Daniel Supernault 47c132c622
Update controller 7 years ago
Daniel Supernault 53110b94fd
Update FederationController 7 years ago
Daniel Supernault b9acd64543
Update FederationController 7 years ago
Daniel Supernault 58fd2f4f65
Update FederationController, fix invalid nodeinfo schema 7 years ago
Daniel Supernault 02f002a02d
Update FederationController, fix nodeinfo stats 7 years ago
Daniel Supernault 8e7f4000b6
Update FederationController 7 years ago