forked from mirrors/misskey
refactor: Use ===
This commit is contained in:
@@ -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 + '/')) {
|
||||
|
||||
Reference in New Issue
Block a user