jonnybarnes.uk/app/Services
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
..
Micropub Implement micropub update support with clean exception-based error handling 2026-02-22 10:15:35 +00:00
ArticleService.php Refactor of micropub request handling 2025-04-27 16:38:25 +01:00
BookmarkService.php Refactor of micropub request handling 2025-04-27 16:38:25 +01:00
LikeService.php Refactor of micropub request handling 2025-04-27 16:38:25 +01:00
NoteService.php Fix unit tests 2026-01-04 10:22:32 +00:00
PlaceService.php Update Laravel to v12 2025-04-01 21:10:30 +01:00
TokenService.php Refactor micropub token verification 2025-04-12 11:47:30 +01:00