From 0004944708c049aba54bb61898d5dc2bf3c97f14 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 8 Apr 2018 05:07:17 +0900 Subject: [PATCH] Fix bug --- src/remote/activitypub/act/follow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 => { 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;