update event types for federation

This commit is contained in:
ssmucny 2023-06-18 13:39:43 -04:00
parent 20f1a39781
commit a5dcc8264d
5 changed files with 1 additions and 4 deletions

View File

@ -435,6 +435,7 @@ export class ApRendererService {
name: event.title, name: event.title,
startTime: event.start, startTime: event.start,
endTime: event.end, endTime: event.end,
...event.metadata,
} as const : {}; } as const : {};
} }

View File

@ -51,7 +51,6 @@ export class ApEventService {
start, start,
end, end,
metadata: { metadata: {
'@context': 'https://schema.org',
'@type': 'Event', '@type': 'Event',
name: note.name, name: note.name,
url: note.href, url: note.href,

View File

@ -75,7 +75,6 @@ export class Event {
} }
export type EventSchema = { export type EventSchema = {
'@context': 'https://schema.org';
'@type': 'Event'; '@type': 'Event';
name?: string; name?: string;
url?: string; url?: string;

View File

@ -32,7 +32,6 @@ export const Default = {
start: '2017-10-25T15:00:00+0900', start: '2017-10-25T15:00:00+0900',
end: '2017-10-25T18:00:00+0900', end: '2017-10-25T18:00:00+0900',
metadata: { metadata: {
'@context': 'https://schema.org',
'@type': 'Event', '@type': 'Event',
location: 'Kawasaki, Japan', location: 'Kawasaki, Japan',
description: 'Let\'s have a tea party!', description: 'Let\'s have a tea party!',

View File

@ -163,7 +163,6 @@ function get(): misskey.entities.Note['event'] {
start: start, start: start,
end: end, end: end,
metadata: { metadata: {
'@context': 'https://schema.org',
'@type': 'Event', '@type': 'Event',
name: title.value, name: title.value,
startDate: (new Date(start)).toISOString(), startDate: (new Date(start)).toISOString(),