update event types for federation
This commit is contained in:
parent
20f1a39781
commit
a5dcc8264d
|
@ -435,6 +435,7 @@ export class ApRendererService {
|
|||
name: event.title,
|
||||
startTime: event.start,
|
||||
endTime: event.end,
|
||||
...event.metadata,
|
||||
} as const : {};
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,6 @@ export class ApEventService {
|
|||
start,
|
||||
end,
|
||||
metadata: {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'Event',
|
||||
name: note.name,
|
||||
url: note.href,
|
||||
|
|
|
@ -75,7 +75,6 @@ export class Event {
|
|||
}
|
||||
|
||||
export type EventSchema = {
|
||||
'@context': 'https://schema.org';
|
||||
'@type': 'Event';
|
||||
name?: string;
|
||||
url?: string;
|
||||
|
|
|
@ -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!',
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue