Skip to content

Conversation

@tompscanlan
Copy link
Contributor

@tompscanlan tompscanlan commented Jan 4, 2026

Summary

  • Include formatted date/time and location in og:description for events
  • Add GET /meta/event-series/:slug endpoint for series link previews
  • Series og:description includes recurrence pattern

Changes

  • meta.controller.ts: Added formatEventDateTime(), buildEventDescription(), buildEventSeriesDescription() methods; added event-series endpoint
  • meta.module.ts: Added EventSeriesModule import
  • meta.controller.spec.ts: 11 new tests

Example output

Event og:description (before):

Join us for our monthly meetup to discuss...

Event og:description (after):

Sat, Jan 4 at 7:00 PM · Coffee Shop Downtown

Join us for our monthly meetup to discuss...

Event series og:description:

Every week - Relaxing yoga sessions for all levels

Closes #442

Test plan

  • Unit tests pass (42/42 meta controller tests)
  • Test event link preview in Slack/Discord (dev environment)
  • Test event-series link preview in Slack/Discord (dev environment)
  • Verify date/time formatting looks correct
  • Verify location appears when present

…ries endpoint

- Include formatted date/time and location in og:description for events
- Add GET /meta/event-series/:slug endpoint for series link previews
- Series og:description includes recurrence pattern

Closes #442
The meta controller prepends date/time to event descriptions in the
body HTML. Tests were expecting exact `<p>${description}</p>` match
but the actual output includes the date prefix. Updated assertions
to check for description text presence rather than exact wrapper.
Match error handling pattern from event/group endpoints - return 500
for unexpected errors instead of 404 for all errors.
@tompscanlan tompscanlan merged commit e39dca2 into main Jan 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve OG previews: add date/time/location to og:description, add event-series endpoint

2 participants