summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/kernel/follow.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/remote/activitypub/kernel/follow.ts')
-rw-r--r--src/remote/activitypub/kernel/follow.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote/activitypub/kernel/follow.ts b/src/remote/activitypub/kernel/follow.ts
index c255067bfd..fca6d26ccc 100644
--- a/src/remote/activitypub/kernel/follow.ts
+++ b/src/remote/activitypub/kernel/follow.ts
@@ -5,7 +5,7 @@ import { IFollow } from '../type';
import { Users } from '../../../models';
export default async (actor: IRemoteUser, activity: IFollow): Promise<void> => {
- const id = typeof activity.object == 'string' ? activity.object : activity.object.id;
+ const id = typeof activity.object === 'string' ? activity.object : activity.object.id;
if (id == null) throw new Error('missing id');
if (!id.startsWith(config.url + '/')) {