feat: Announce(Note) and Undo(Announce)

This commit is contained in:
Julian Lam
2024-02-06 14:57:44 -05:00
parent 21a2876e9c
commit 415b4fe11a
4 changed files with 85 additions and 36 deletions

View File

@@ -237,3 +237,15 @@ ActivityPub.send = async (type, id, targets, payload) => {
}
}));
};
setTimeout(async () => {
await ActivityPub.send('uid', 1, 'https://localhost/uid/1', {
// type: 'Undo',
// object: {
type: 'Announce',
actor: `https://localhost/uid/1`,
object: 'https://localhost/post/1',
published: new Date().toISOString(),
// },
});
}, 2000);