summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/remote/activitypub/renderer/delete.ts3
-rw-r--r--src/remote/activitypub/renderer/undo.ts3
-rw-r--r--src/remote/activitypub/renderer/update.ts3
3 files changed, 6 insertions, 3 deletions
diff --git a/src/remote/activitypub/renderer/delete.ts b/src/remote/activitypub/renderer/delete.ts
index 83b27fa866..176a6f7e27 100644
--- a/src/remote/activitypub/renderer/delete.ts
+++ b/src/remote/activitypub/renderer/delete.ts
@@ -4,5 +4,6 @@ import { User } from '@/models/entities/user';
export default (object: any, user: { id: User['id']; host: null }) => ({
type: 'Delete',
actor: `${config.url}/users/${user.id}`,
- object
+ object,
+ published: new Date().toISOString(),
});
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(),
};
};
diff --git a/src/remote/activitypub/renderer/update.ts b/src/remote/activitypub/renderer/update.ts
index d9a8149af3..8bb415d117 100644
--- a/src/remote/activitypub/renderer/update.ts
+++ b/src/remote/activitypub/renderer/update.ts
@@ -7,7 +7,8 @@ export default (object: any, user: { id: User['id'] }) => {
actor: `${config.url}/users/${user.id}`,
type: 'Update',
to: [ 'https://www.w3.org/ns/activitystreams#Public' ],
- object
+ object,
+ published: new Date().toISOString(),
} as any;
return activity;