mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-26 22:43:08 +02:00
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:
parent
b2d188aab1
commit
fcbb291ef1
2 changed files with 4 additions and 0 deletions
|
@ -171,6 +171,7 @@ export class ApRendererService {
|
||||||
mediaType: file.webpublicType ?? file.type,
|
mediaType: file.webpublicType ?? file.type,
|
||||||
url: this.driveFileEntityService.getPublicUrl(file),
|
url: this.driveFileEntityService.getPublicUrl(file),
|
||||||
name: file.comment,
|
name: file.comment,
|
||||||
|
description: file.comment,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -746,6 +747,7 @@ export class ApRendererService {
|
||||||
summary: summary ?? undefined,
|
summary: summary ?? undefined,
|
||||||
content: content ?? undefined,
|
content: content ?? undefined,
|
||||||
updated: note.updatedAt?.toISOString(),
|
updated: note.updatedAt?.toISOString(),
|
||||||
|
edited_at: note.updatedAt?.toISOString(),
|
||||||
_misskey_content: text,
|
_misskey_content: text,
|
||||||
source: {
|
source: {
|
||||||
content: text,
|
content: text,
|
||||||
|
|
|
@ -121,6 +121,7 @@ export interface IPost extends IObject {
|
||||||
quoteUrl?: string;
|
quoteUrl?: string;
|
||||||
quoteUri?: string;
|
quoteUri?: string;
|
||||||
updated?: string;
|
updated?: string;
|
||||||
|
edited_at?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IQuestion extends IObject {
|
export interface IQuestion extends IObject {
|
||||||
|
@ -249,6 +250,7 @@ export interface IApDocument extends IObject {
|
||||||
type: 'Document';
|
type: 'Document';
|
||||||
name: string | null;
|
name: string | null;
|
||||||
mediaType: string;
|
mediaType: string;
|
||||||
|
description: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IApImage extends IObject {
|
export interface IApImage extends IObject {
|
||||||
|
|
Loading…
Reference in a new issue