Skip to content

Publishing 0.4.1: A failing OG plugin no longer breaks post pages

Publishing 0.4.1 fixes public post pages on sites that use the optional OG image plugin, phoenix_kit_og. Publishing lets that plugin have the last word on a post’s OpenGraph tags. If the plugin raised an error, every public post page failed to render.

The call is now guarded. When the plugin fails, the page uses the post’s own OpenGraph override, or the default tags derived from the post, and renders as usual. Sites without the plugin see no change.

Full release notes: Publishing 0.4.1

0.4.1 · 20 July 2026

PR #33 — guard the phoenix_kit_og refine seam against crashes and document Phase 2 (the OG-image plugin extension point), plus a post-merge review fix. See dev_docs/pull_requests/2026/33-og-seam-rescue-and-docs/ for the review.

Fixed

  • maybe_refine_og_with_module/4 now rescues around the optional phoenix_kit_og plugin’s refine_og/4 call — a raising plugin previously crashed every public post-page render; it now falls back to the per-post override/default OG map.
  • Removed a stale, unused mix.lock entry (beamlab_ex_aws_sqs, orphaned by an earlier rename to ex_aws_sqs) that was failing mix deps.unlock --check-unused in the release gate.

Added

  • Regression test (test/phoenix_kit_publishing/web/controller/og_refine_crash_test.exs) covering the crash-guard end-to-end, plus a PhoenixKitOG test stub.
  • AGENTS.md now documents the three-layer OG precedence (derived default → per-post override → phoenix_kit_og plugin) and how build_og_data/4 resolves it.

Publishing 0.4.1. Install or update: {:phoenix_kit_publishing, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.