fix: build post URLs without a request context (v2.17.1)

Crossposting runs in a background worker; url_for there raised and every
crosspost failed. post_url now joins SITE_URL and post_path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-12 12:53:54 -07:00
1 parent 191c99b59b
commit 6368365bd6
4 files changed
+23 -4

No files matched your search

@@ -21,3 +21,9 @@ slugs for notes, redirects both ways, updates via the old URL, slug rules
(accents, duplicates, reserved, `mp-slug`, emoji, long titles), 201 on
adding/removing a title, 410 for a deleted article, webmention targets and
homepage links, search result URLs.
## v2.17.1
`post_url` first used `url_for`, which fails outside a request (the
crosspost and backfeed workers); CI caught it in `test_likes_reposts.py`
before 2.17.0 was built. It now joins `SITE_URL` and `post_path`.