jonnybarnes.uk/app/Http/Controllers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonny Barnes 24cb6d61aa
Implement micropub update support with clean exception-based error handling
- Add MicropubUnsupportedModelException for non-note update attempts
- Refactor UpdateHandler to throw exceptions instead of returning JsonResponse objects; extract applySyndication() to DRY up duplicated syndication URL mapping
- Fix MicropubController: InvalidTokenScopeException now returns 401 + insufficient_scope; add catches for ModelNotFoundException (404) and MicropubUnsupportedModelException (500); updates return 200 not 201
- Slim MicropubRequest.normalizeMicropubJson() to branch on action type, keeping update and create fields cleanly separated
- Update tests to match corrected status codes and error keys; remove markTestSkipped() from all update tests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 10:15:35 +00:00
..
Admin Remove psalm annotations 2025-04-10 20:09:36 +01:00
ArticlesController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
AuthController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
BookmarksController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
ContactsController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
Controller.php Upgrade to Laravel 11 2024-03-19 20:13:36 +00:00
FeedsController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
FrontPageController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
IndieAuthController.php Update Laravel to v12 2025-04-01 21:10:30 +01:00
LikesController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
MicropubController.php Implement micropub update support with clean exception-based error handling 2026-02-22 10:15:35 +00:00
MicropubMediaController.php Refactor micropub token verification 2025-04-12 11:47:30 +01:00
NotesController.php Switch local setup to PHP8.5 2025-12-13 15:53:00 +00:00
PlacesController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
SearchController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00
WebMentionsController.php Remove psalm annotations 2025-04-10 20:09:36 +01:00