jonnybarnes.uk/tests/Feature
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonny Barnes eb35a0aa2d
Update existing draft articles instead of erroring on a repeat Micropub post
If a Micropub h-entry post's title matches an existing article that's
still a draft, update that article in place rather than trying to
insert a duplicate. If it matches one that's already published,
reject the request with a clear error instead of silently colliding.

Also set includeTrashed on Article's slug config as a safety net: this
model soft-deletes, and Sluggable's uniqueness check ignores trashed
rows by default, so a previously-deleted article's title could crash
new inserts with a raw unique constraint violation (this is exactly
what surfaced in Flare as a UniqueConstraintViolationException on
articles_titleurl_unique once the prior swallowed-exception fix
shipped).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 17:16:11 +01:00
..
Admin Add manual Micropub token generation for non-PKCE clients 2026-09-13 10:40:27 +01:00
Console Add command to reprocess existing media with correct aspect-ratio scaling 2026-07-02 20:00:30 +01:00
AboutPageTest.php Add admin-editable About page 2026-08-28 14:49:53 +01:00
ArticlesTest.php Upgrade to Laravel 13 2026-04-07 09:01:19 +01:00
BookmarksTest.php Upgrade to Laravel 13 2026-04-07 09:01:19 +01:00
ContactsTest.php Laravel Pint fixes 2025-04-06 17:25:06 +01:00
CorsHeadersTest.php Upgrade to Laravel 13 2026-04-07 09:01:19 +01:00
CsrfExemptionsTest.php Fix CSRF exemption and array-input crash on revocation/introspection 2026-08-13 17:03:43 +01:00
FeedsTest.php Drop RSS/Atom feeds, support JSON feeds only 2026-08-22 10:42:16 +01:00
FrontPageTest.php Laravel Pint fixes 2025-04-06 17:25:06 +01:00
HeaderLinkTest.php Fix CSRF exemption and array-input crash on revocation/introspection 2026-08-13 17:03:43 +01:00
HorizonTest.php Laravel Pint fixes 2025-04-06 17:25:06 +01:00
IndieAuthTest.php Fix CSRF exemption and array-input crash on revocation/introspection 2026-08-13 17:03:43 +01:00
LikesTest.php Migrate outbound HTTP calls from Guzzle to the Http facade 2026-07-26 09:12:01 +01:00
MicropubControllerTest.php Update existing draft articles instead of erroring on a repeat Micropub post 2026-09-19 17:16:11 +01:00
MicropubMediaTest.php Upgrade to Laravel 13 2026-04-07 09:01:19 +01:00
NotesControllerTest.php Switch Bridgy syndication from Micropub to webmention 2026-07-14 17:36:25 +01:00
ParseCachedWebMentionsTest.php Upgrade to Laravel 13 2026-04-07 09:01:19 +01:00
PlacesTest.php Laravel Pint fixes 2025-04-06 17:25:06 +01:00
ReDownloadWebMentionsTest.php Laravel Pint fixes 2025-04-06 17:25:06 +01:00
SearchTest.php Laravel Pint fixes 2025-04-06 17:25:06 +01:00
SwarmTest.php Upgrade to Laravel 13 2026-04-07 09:01:19 +01:00
TokenServiceTest.php Fix CSRF exemption and array-input crash on revocation/introspection 2026-08-13 17:03:43 +01:00
WebMentionsControllerTest.php Upgrade to Laravel 13 2026-04-07 09:01:19 +01:00