From 0e4a111f81cceed275d9bec2695f6e401fb654d8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 12 Nov 2021 02:02:25 +0900 Subject: refactoring Resolve #7779 --- src/remote/activitypub/renderer/undo.ts | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/remote/activitypub/renderer/undo.ts (limited to 'src/remote/activitypub/renderer/undo.ts') diff --git a/src/remote/activitypub/renderer/undo.ts b/src/remote/activitypub/renderer/undo.ts deleted file mode 100644 index 14115b788d..0000000000 --- a/src/remote/activitypub/renderer/undo.ts +++ /dev/null @@ -1,13 +0,0 @@ -import config from '@/config/index'; -import { ILocalUser, User } from '@/models/entities/user'; - -export default (object: any, user: { id: User['id'] }) => { - if (object == null) return null; - - return { - type: 'Undo', - actor: `${config.url}/users/${user.id}`, - object, - published: new Date().toISOString(), - }; -}; -- cgit v1.2.3-freya