Use post metadata in link previews #267
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!267
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-026a9b5f-link-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
Render link preview titles, descriptions, and site names from existing post and source metadata while omitting unavailable optional fields. Expand assigned source records in post API responses so the API contract matches the template data model.
Task
Task: #task-026a9b5f
Changes
post.title,post.excerpt, andpost.source.namein link previews.Testing
Checklist
./scripts/pre-pr.shpassesReview summary
The link preview implementation is scoped to link posts, uses the requested post and source metadata, preserves destination navigation, and cleanly omits unavailable optional fields. Route and visual tests cover complete and partial metadata. Local pre-PR checks and Forgejo CI pass.
Acceptance criteria
post.titleas their title.post.excerptas their description.post.source.namewhen a source is assigned.Blocking issues
Warnings
Verdict
Approved.
Review summary
The updated PR now resolves the post/source contract mismatch in addition to rendering the requested preview metadata. Assigned sources are expanded consistently in post create, list, and detail responses; the OpenAPI schema and TypeScript model match that behavior. Preview rendering remains scoped to link posts and handles missing metadata cleanly. Local pre-PR checks, visual tests, manual API verification, and Forgejo CI pass.
Acceptance criteria
post.titleas their title.post.excerptas their description.post.source.namewhen a source is assigned.Blocking issues
Warnings
Verdict
Approved.