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,
startTime: event.start,
endTime: event.end,
...event.metadata,
} as const : {};
}

View File

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

View File

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

View File

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

View File

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