feat: attachments support

This commit is contained in:
Julian Lam
2024-02-16 12:07:29 -05:00
parent 8b0ccc8090
commit e5b6ee97bd
5 changed files with 47 additions and 10 deletions

View File

@@ -90,6 +90,7 @@ Mocks.post = async (objects) => {
inReplyTo: toPid,
to,
cc,
attachment,
} = object;
const timestamp = new Date(published).getTime();
@@ -108,7 +109,7 @@ Mocks.post = async (objects) => {
edited,
editor: edited ? uid : undefined,
_activitypub: { to, cc },
_activitypub: { to, cc, attachment },
};
return payload;