upd: pass a few more AP values

The added values are all taken from Mastodon code in hope to make editing and everything else sync better
This commit is contained in:
Mar0xy 2023-11-30 04:01:07 +01:00
parent b2d188aab1
commit fcbb291ef1
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
2 changed files with 4 additions and 0 deletions

View file

@ -171,6 +171,7 @@ export class ApRendererService {
mediaType: file.webpublicType ?? file.type,
url: this.driveFileEntityService.getPublicUrl(file),
name: file.comment,
description: file.comment,
};
}
@ -746,6 +747,7 @@ export class ApRendererService {
summary: summary ?? undefined,
content: content ?? undefined,
updated: note.updatedAt?.toISOString(),
edited_at: note.updatedAt?.toISOString(),
_misskey_content: text,
source: {
content: text,

View file

@ -121,6 +121,7 @@ export interface IPost extends IObject {
quoteUrl?: string;
quoteUri?: string;
updated?: string;
edited_at?: string;
}
export interface IQuestion extends IObject {
@ -249,6 +250,7 @@ export interface IApDocument extends IObject {
type: 'Document';
name: string | null;
mediaType: string;
description: string | null;
}
export interface IApImage extends IObject {