Commit Graph
4 Commits
Author SHA1 Message Date
larsiandClaude Opus 5.5 f2429eb9ec fix: post pages 500 under SSR with PUBLIC_INTERNAL_INSTANCE
On the server profile.current.instance is the internal API address, so the post loader
saw an instance mismatch and called goto(), which throws on the server. Compare against
the public instance and only redirect in the browser. /post/<id> now redirects to the
public instance instead of the internal one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011c5BZVwWdVLrdQi9htmuth
2026-11-14 01:38:20 +01:00
larsiandClaude Opus 5.5 8e7c5be4c8 feat: pretty post URLs /p/<code>/<title-slug> in single-community mode
The code is the post id through a reversible 32-bit mix in base36: unique, short, and not the
raw sequential id. Only the code resolves the post (via the reroute hook), so the slug can
change with the title. Feed links, the share button, canonical and og:url use the pretty
form, and old /post/<instance>/<id> links are rewritten in the address bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011c5BZVwWdVLrdQi9htmuth
2026-11-14 01:33:48 +01:00
larsiandClaude Opus 5.5 302700ef66 feat: hide the community handle in the sidebar card in single-community mode
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011c5BZVwWdVLrdQi9htmuth
2026-11-14 01:12:24 +01:00
larsiandClaude Opus 5.5 a9bf3497fe feat: single-community mode (PUBLIC_SINGLE_COMMUNITY)
For instances that are one community (thebitcoin.win): "/" reroutes to the
community page, community browsing and explore lead back to it, community
names/handles are hidden on posts and in the header, and create-post
preselects the community. Unset, behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011c5BZVwWdVLrdQi9htmuth
2026-11-14 01:06:07 +01:00