From f47a564819500d801c76fe327fec276b4bfa9989 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sun, 31 Oct 2021 15:18:46 +0900 Subject: [PATCH] fix: Fix #7895 (#7937) * Fix #7895 * CHANGELOG --- CHANGELOG.md | 7 +++++++ src/remote/activitypub/renderer/delete.ts | 3 ++- src/remote/activitypub/renderer/undo.ts | 3 ++- src/remote/activitypub/renderer/update.ts | 3 ++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13dccdc38..bf62565b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ --> +## 12.x.x (unreleased) + +### Improvements + +### Bugfixes +- リレー向けのActivityが一部実装で除外されてしまうことがあるのを修正 + ## 12.94.1 (2021/10/25) ### Improvements diff --git a/src/remote/activitypub/renderer/delete.ts b/src/remote/activitypub/renderer/delete.ts index 83b27fa86..176a6f7e2 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 f9082ffdf..14115b788 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 d9a8149af..8bb415d11 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;