mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
feat: attachments support
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user