From 5e5c46545cb0e153d94d645080d02ead7a503514 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 3dd029af5..236886dc6 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;