summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/renderer/undo.ts
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2021-10-31 15:18:46 +0900
committerGitHub <noreply@github.com>2021-10-31 15:18:46 +0900
commitf47a564819500d801c76fe327fec276b4bfa9989 (patch)
treecf29eff635fb80c87a7f35533d50c46cbd8c4fc7 /src/remote/activitypub/renderer/undo.ts
parentfix e2e test (diff)
downloadsharkey-f47a564819500d801c76fe327fec276b4bfa9989.tar.gz
sharkey-f47a564819500d801c76fe327fec276b4bfa9989.tar.bz2
sharkey-f47a564819500d801c76fe327fec276b4bfa9989.zip
fix: Fix #7895 (#7937)
* Fix #7895 * CHANGELOG
Diffstat (limited to 'src/remote/activitypub/renderer/undo.ts')
-rw-r--r--src/remote/activitypub/renderer/undo.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/remote/activitypub/renderer/undo.ts b/src/remote/activitypub/renderer/undo.ts
index f9082ffdfc..14115b788d 100644
--- a/src/remote/activitypub/renderer/undo.ts
+++ b/src/remote/activitypub/renderer/undo.ts
@@ -7,6 +7,7 @@ export default (object: any, user: { id: User['id'] }) => {
return {
type: 'Undo',
actor: `${config.url}/users/${user.id}`,
- object
+ object,
+ published: new Date().toISOString(),
};
};