Skip to content

Publishing 0.13.1: Publishing through update_post works again

Publishing 0.13.1 fixes code that publishes a post by calling update_post/4 with "status" => "published". It saved the content, dropped the status and answered {:ok, post} with a draft, so the post never went live.

Now the saved version is published, with its status and the live version moving together. If publishing is refused after the content was saved, the call returns {:error, {:publish_failed, reason}} with a translated message, and the saved content stays. Pass publish: false to only save. The admin editor keeps saving and publishing as separate steps.

On public listing pages, clamped excerpts no longer stretch past their line limit inside cards of equal height.

Full release notes: Publishing 0.13.1

0.13.1 · 5 October 2026

Fixed

  • update_post/4 with "status" => "published" now publishes the saved version through publish_version/4 (status and live pointer move together under the post’s lock). It used to save the content, drop the status and answer {:ok, post} with a draft. A publish refused after the content saved returns {:error, {:publish_failed, reason}} with a translated message in every locale; the save stands. Pass publish: false to save only — the editor does.
  • Clamped excerpts on listing cards no longer stretch past their line clamp inside equal-height cards (daisyUI’s .card-body p { flex-grow: 1 }).

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