Posts 0.1.8: Posts show up in the activity feed
Posts 0.1.8 records what happens to posts in PhoenixKit’s activity feed: creating, publishing, deleting and liking a post each add an entry that links back to the post’s admin page.
When an admin publishes or deletes someone else’s post, from the posts list, a bulk action or the post’s page, the entry names that admin, not the post’s author. Publishing a post that is already public, for example when a scheduled job runs again or someone clicks publish on a public post, adds no second entry.
If the activity feed is not available in your core version, posts work as before and nothing is logged. A failed log entry never stops the post action itself.
No migration and no configuration.
Full release notes: Posts 0.1.8
0.1.8 · 8 July 2026
Added
- Log post activities to PhoenixKit core’s activity feed (PR #11). Creating,
publishing, deleting, and liking a post now records a
post.*entry viaPhoenixKit.Activity.log/1, carryingresource_type: "post"+ the post uuid so the feed deep-links each entry back to/admin/posts/{uuid}through the existingresolve_comment_resources/1handler. Logging is guarded (Code.ensure_loaded?) and rescued, so it never breaks the underlying post operation when core’s Activity module is absent.
Fixed
- Attribute admin-initiated publish/delete to the acting admin, not the post’s
author. The activity actor is now threaded from the admin LiveViews
(
Postssingle + bulk actions,Detailsdelete) via:actor_uuid; previously thepost_actor/2fallback recorded the author for every moderation action, corrupting the feed’s audit trail. - Stop logging a duplicate
post.publishedon idempotent re-publish.publish_postis re-invoked by the scheduled handler (e.g. on an Oban retry) and by the admin Publish / bulk-publish buttons on already-public posts; the event is now recorded only on a genuine transition to public.
Posts 0.1.8. Install or update: {:phoenix_kit_posts, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.