github: shadowy octopus with the head of a robot, emblazoned with the Dreamwidth swirl (Default)
github ([personal profile] github) wrote in [site community profile] changelog2026-02-20 09:49 pm

[dreamwidth/dreamwidth] 86a235: Add per-entry OpenGraph meta tags for public entri...

Branch: refs/heads/main Home: https://github.com/dreamwidth/dreamwidth Commit: 86a23512cf4aca54a77dd38f26348c19a338d83d https://github.com/dreamwidth/dreamwidth/commit/86a23512cf4aca54a77dd38f26348c19a338d83d Author: Nova sda1@umbc.edu Date: 2026-02-20 (Fri, 20 Feb 2026)

Changed paths: M cgi-bin/LJ/S2/EntryPage.pm

Log Message:


Add per-entry OpenGraph meta tags for public entries (#3522)

Emit og:title, og:type, og:url, og:site_name, og:description, og:image, article:published_time, article:author, and article:tag for public journal entries so that Discord, Slack, Facebook, and other services can generate meaningful link previews.

Only public entries get these tags — non-public entries keep the existing site-wide defaults (DW logo) to avoid content leakage. All attribute values are escaped with LJ::ehtml(). The entry OG block is prepended to head_content so the entry-specific og:image takes precedence over the site-wide fallback from Page().

Fixes #2206

Co-authored-by: Novalinium nova@noblejury.com Co-authored-by: Claude Opus 4.6 noreply@anthropic.com

To unsubscribe from these emails, change your notification settings at https://github.com/dreamwidth/dreamwidth/settings/notifications