summary refs log tree commit diff
path: root/src/activitypub/federation/transforms.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/activitypub/federation/transforms.ts')
-rw-r--r--src/activitypub/federation/transforms.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/activitypub/federation/transforms.ts b/src/activitypub/federation/transforms.ts
index fd347116..41b76148 100644
--- a/src/activitypub/federation/transforms.ts
+++ b/src/activitypub/federation/transforms.ts
@@ -18,13 +18,13 @@ import {
 	APNote,
 	APOrganization,
 	APPerson,
+	ObjectIsPerson,
 } from "activitypub-types";
 import TurndownService from "turndown";
 import { In } from "typeorm";
 import {
 	ACTIVITYSTREAMS_CONTEXT,
 	APError,
-	APObjectIsPerson,
 	fetchFederatedUser,
 	resolveAPObject,
 } from "./utils";
@@ -117,7 +117,7 @@ export const transformNoteToMessage = async (note: APNote) => {
 			: note.attributedTo,
 	);
 
-	if (!APObjectIsPerson(attrib))
+	if (!ObjectIsPerson(attrib))
 		throw new APError("Note must be attributedTo a Person");
 
 	const user = await transformPersonToUser(attrib);