Skip to content

Latch v0.4.4.0

Choose a tag to compare

@YeOK YeOK released this 12 Jul 12:34

Plugin hook expansion (28 hooks total)

Adds 11 new hooks so tier-1/2 catalog plugins can ship without further core changes:

  • Post formatting: post.format.link, post.format.after — link preview / onebox at render time
  • CSP: csp.frame_src, csp.script_src — video embeds and analytics scripts
  • Layout: layout.head<head> snippets (privacy analytics)
  • UI: topic.actions, profile.form — share buttons and profile extensions
  • Profile: profile.before_save + ProfileSaveContext
  • Lifecycle: post.delete, topic.delete, post.vote

Standalone bare https:// URLs on their own line are now auto-linked; post.format.link receives $standalone = true for onebox/embed plugins.

Docs: source/docs/PLUGINS.md, source/docs/MARKUP.md

Validated on latch.network (hot-patch + fix-perms).

Upgrade

RPM: sudo dnf upgrade latch (COPR when rebuilt)
Tarball: bash scripts/update.sh from extracted release