Commit Graph

33 Commits (57e7eef08296acf97d9c7a7b25d8a6d268ab52c3)

Author SHA1 Message Date
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
Daniel Supernault 374344754e
Lint 9 months ago
Daniel Supernault 4739d6146f
Update FollowerController, remove deprecated /i/follow endpoint 4 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 4a14e970f0
Update Profile model, improve counter caching 6 years ago
Daniel Supernault 5b09e6f111
Update FollowerController 7 years ago
Daniel Supernault ad8fc77e6c
Update FollowerController 7 years ago
Daniel Supernault a429d96187
Update FollowerController 7 years ago
Daniel Supernault 6237897def
Update FollowerController, make follow and unfollow methods public 7 years ago
Daniel Supernault a3404a20e1
Update FollowerController, fix unfollow bug 7 years ago
Daniel Supernault 39394327f0
Update FollowController, fix private account bug 7 years ago
Daniel Supernault d9db1cf8b1
Update FollowerController 7 years ago
Daniel Supernault cb8d7e3b9a
Update FollowerController 7 years ago
Daniel Supernault 2cccbd772a
Update FollowerController 7 years ago
Daniel Supernault dccaa2bd94
Update FollowerController 7 years ago
Daniel Supernault a4bf848a3c
Update FollowerController 7 years ago
Daniel Supernault 37289f7935
Update FollowerController, send Undo Follow 7 years ago
Daniel Supernault f0455b0454
Update FollowerController, send Follow ActivityPub object to remote instances 7 years ago
Daniel Supernault d1c0e9aae9
Add limits to Following 7 years ago
Daniel Supernault 066f1a9282
Update BaseApiController, cache verify_credentials endpoint 8 years ago
Daniel Supernault 2f007f6826
Update FollowerController 8 years ago
Daniel Supernault 14261543ae
Update FollowerController 8 years ago
Daniel Supernault d1d8fa4acd
Update FollowerController 8 years ago
Daniel Supernault ba8c101703
Update FollowerController 8 years ago
Daniel Supernault d4c347ffa9
Update FollowerController 8 years ago
Daniel Supernault 1073892c66
Update FollowerController 8 years ago
Daniel Supernault bcd75c115c
Update FollowerController 8 years ago
Daniel Supernault 38d6d58dc8
Update FollowerController 8 years ago
Daniel Supernault c248c9d737
Update FollowerController 8 years ago
Daniel Supernault 77d4e45729
Update FollowerController, prevent users from following private profiles without approval 8 years ago
daniel b8abbdd90f Apply fixes from StyleCI 8 years ago
Daniel Supernault dff76e70b3 Add FollowerController 8 years ago
Daniel Supernault df45744dae Add follower model, migration, controller 9 years ago