Commit Graph

46 Commits (a142db87b4e63d7d760d5f1d337e9636c388e169)

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
Your Name edb4368b08 refactor: replace deprecated laravel/helpers with native alternatives
Replace all deprecated helper function calls:
- str_slug() → Str::slug()
- starts_with() → str_starts_with()
- ends_with() → str_ends_with()
- array_first() → Arr::first()
- array_last() → Arr::last()
- array_flatten() → Arr::flatten()

Remove laravel/helpers package from composer.json as it is no longer
needed and will not be maintained for Laravel 13.
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.
4 weeks ago
Your Name 1a1dc5e096 fix typo 8 months ago
Daniel Supernault 86af73455f
Update DirectMessageController, add mutuals endpoint 1 year ago
Daniel Supernault 717f17cdee
Update DM config, allow new users to send DMs by default, with a new env variable to enforce a 72h limit 2 years ago
Daniel Supernault 8c7a71ee73
Update DirectMessageController, fix query 2 years ago
Daniel Supernault 4ec9f990ed
Update DirectMessageController, fix performance issue 2 years ago
Daniel Supernault 8fad89543f
DM 2 years ago
Daniel Supernault 639df41093
Update DirectMessageController, remove 72h limit for admins 2 years ago
Daniel Supernault 9eeb7b6741
Update Status caption logic, stop storing duplicate html caption in db and defer to cached StatusService rendering 2 years ago
Daniel Supernault 044d410c49
Update DirectMessageController, fix ordering bug 2 years ago
Daniel Supernault bcc8b8842f
Update DirectMessageController, fix ordering bug 2 years ago
Daniel Supernault a2524910dd
Add migration 2 years ago
Daniel Supernault bc84259a63
Lint 2 years ago
Daniel Supernault 96f24f337e
Update DirectMessageController, add carousel entity to threads 2 years ago
Daniel Supernault b24d2554a8
Update DirectMessageController, add timestamps to threads 2 years ago
Daniel Supernault 61d105fd25
Update DirectMessageController, add 72 hour delay for new accounts before they can send a DM 2 years ago
Daniel Supernault fe30cd25d1
Update DirectMessageController, add parental controls support 3 years ago
Daniel Supernault 38fee418a9
Update DirectMessageController 3 years ago
Daniel Supernault 9818656425
Update DirectMessageController, dispatch local deletes to pipeline 3 years ago
Daniel Supernault d1c297d1ad
Update DirectMessageController, revert delete delivery to sharedInbox 3 years ago
Daniel Supernault 7f462a8055
Update DirectMessageController, dispatch deliver and delete actions to the job queue 3 years ago
Daniel Supernault d848792ad4
Update DirectMessageController, deliver direct delete activities to user inbox instead of sharedInbox 3 years ago
Daniel Supernault 6cdb5bc672
Update Notification logic, remove message and rendered fields 3 years ago
Daniel Supernault 22da2647c7
Update filesystems, store all files as public by default and add default permissions. Fixes #4273, #4275. Closes #3825 4 years ago
Daniel Supernault 9e223a6b83
Update DirectMessageController, include account entity in lookup endpoint 4 years ago
a 9e22b48a42 add back missing security context to direct messages 4 years ago
a be6dc8ac47 clean up json-ld schema 4 years ago
Daniel Supernault a4659fd2ab
Update DirectMessageController to support new Metro 2.0 UI DMs 4 years ago
Daniel Supernault f34a1e9d8e
Add Conversations model 4 years ago
Daniel Supernault bae6126db3
Update compiled assets 5 years ago
Daniel Supernault 0f00be4d98
Update DirectMessageController, fix autocomplete bug 5 years ago
Daniel Supernault 2d0a253e07
Update DirectMessageController, disable exception logging for invalid urls. Fixes #2752 5 years ago
Daniel Supernault 7895097fc1
Update config() to config_cache() 5 years ago
Daniel Supernault 3a9203e039
Update config() to config_cache() 5 years ago
Daniel Supernault c0e693cc73
Update config() to config_cache() 5 years ago
Daniel Supernault 1d54204635
Update config() to config_cache() 5 years ago
Daniel Supernault e2e32682fd
Update DirectMessageController, add sharedInbox support 6 years ago
Daniel Supernault f1c28e7d0c
Update DirectMessageController, fix pgsql bug 6 years ago
Daniel Supernault 9d07071ee0
Update DirectMessageController 6 years ago
Daniel Supernault f796cc7c11
Update DirectMessageController 6 years ago
Daniel Supernault 4b90b1e0df
Update DirectMessageController 6 years ago
Daniel Supernault d63569c120
Add Direct Messages 6 years ago
Daniel Supernault d48f15a036
Update DirectMessageController 8 years ago
Daniel Supernault f8e19fdafe
Add DirectMessageController 8 years ago