feat: add social preview metadata for posts #225
No reviewers
Labels
No labels
activitypub
admin
api
architecture
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
content
database
deployment
design
dev-env
diagnostics
docs
documentation
email
enhancement
feature
federation
feed
health
homepage
implementation
integration
logging
mastodon
media
navigation
npm-packages
openapi
opengraph
packages
passkeys
preview
priority:high
priority:low
priority:medium
production
proof
proxy
public-routes
public-ui
release
safety
slug-api
slug-auth
slug-core
slug-federation
slug-media
slug-template
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
webauthn
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!225
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-8bf18a24-post-preview-metadata"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
og:type=article, absolute canonical/preview URLs, and first Markdown image metadata when available.twitter:card=summary.Verification
Task: #task-8bf18a24
Review summary
Approved.
Acceptance criteria
og:title,og:description,og:url,og:type, and image metadata where available. Evidence: public page renderer now emits OpenGraph metadata; post detail route passespreview: { type: "article", ...extractFirstImagePreview(...) }; tests assert all required OpenGraph tags for an image-backed article.summary_large_imagefor image-backed posts. Evidence: renderer emitstwitter:card,twitter:title,twitter:description, and image tags; tests assertsummary_large_imagefor image-backed article andsummaryfor no-image article.toAbsoluteUrl; tests asserthttp://localhost:3000/media/hero.pngfor/media/hero.png.Blocking issues
Warnings
Verification reviewed
./scripts/pre-pr.shpassed locally.git diff --check main...HEAD.Final verdict
Approved. Ready for human merge approval.