diff --git a/packages/backend/src/core/activitypub/models/ApEventService.ts b/packages/backend/src/core/activitypub/models/ApEventService.ts index b525f09ae0..50cbbe14ca 100644 --- a/packages/backend/src/core/activitypub/models/ApEventService.ts +++ b/packages/backend/src/core/activitypub/models/ApEventService.ts @@ -50,7 +50,16 @@ export class ApEventService { title, start, end, - metadata: {}, + metadata: { + '@context': 'https://schema.org', + '@type': 'Event', + name: note.name, + url: note.href, + startDate: note.startTime.toISOString(), + endDate: note.endTime?.toISOString(), + description: note.summary, + identifier: note.id, + }, }; } else { throw new Error('Invalid event properties'); diff --git a/packages/backend/src/models/entities/Event.ts b/packages/backend/src/models/entities/Event.ts index bad8b5d8ac..db48bda7b4 100644 --- a/packages/backend/src/models/entities/Event.ts +++ b/packages/backend/src/models/entities/Event.ts @@ -109,6 +109,7 @@ export type EventSchema = { sameAs?: string; // ie. URL to website/social }[]; typicalAgeRange?: string; + identifier?: string; } export type IEvent = {