From d7c7bc5d8ea39faa093b921d68af841467fc60d7 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 24 Mar 2021 11:28:56 +0900 Subject: [PATCH] fix type --- src/remote/activitypub/renderer/accept.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/remote/activitypub/renderer/accept.ts b/src/remote/activitypub/renderer/accept.ts index 03f7b0738..8725a30e7 100644 --- a/src/remote/activitypub/renderer/accept.ts +++ b/src/remote/activitypub/renderer/accept.ts @@ -1,7 +1,7 @@ import config from '@/config'; -import { ILocalUser } from '../../../models/entities/user'; +import { User } from '@/models/entities/user'; -export default (object: any, user: ILocalUser) => ({ +export default (object: any, user: { id: User['id']; host: null }) => ({ type: 'Accept', actor: `${config.url}/users/${user.id}`, object