summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/remote/activitypub/act/follow.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote/activitypub/act/follow.ts b/src/remote/activitypub/act/follow.ts
index 3dd029af54..236886dc60 100644
--- a/src/remote/activitypub/act/follow.ts
+++ b/src/remote/activitypub/act/follow.ts
@@ -6,7 +6,7 @@ import { IFollow } from '../type';
export default async (actor: IRemoteUser, activity: IFollow): Promise<void> => {
const prefix = config.url + '/@';
- const id = typeof activity == 'string' ? activity : activity.id;
+ const id = typeof activity.object == 'string' ? activity.object : activity.object.id;
if (!id.startsWith(prefix)) {
return null;