feat: articles at /article/<slug> with slugs from their titles (v2.17.0, ADR-077)

Articles (notes with a title) move from /note/<slug> to /article/<slug>;
the other prefix 301-redirects. New articles take their slug from the
title (mp-slug still wins; notes keep timestamp slugs). A Micropub update
that adds or removes a title answers 201 with the new Location.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-12 12:27:31 -07:00
1 parent 66aecc2bcb
commit b7f8e1612c
26 files changed
+308 -60

No files matched your search

+2 -2
View File
@@ -69,9 +69,9 @@ class TestNoteHEntry:
published=True
)
response = client.get('/note/note-with-title')
response = client.get('/article/note-with-title')
assert response.status_code == 200, f"Failed to get note: {response.status_code}"
parsed = mf2py.parse(doc=response.data.decode(), url='http://localhost/note/note-with-title')
parsed = mf2py.parse(doc=response.data.decode(), url='http://localhost/article/note-with-title')
entries = [item for item in parsed['items'] if 'h-entry' in item.get('type', [])]
assert len(entries) > 0, "No h-entry found in parsed HTML"