This commit is contained in:
syuilo 2018-04-08 05:07:17 +09:00
parent 5ddb047794
commit 0004944708
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import { IFollow } from '../type';
export default async (actor: IRemoteUser, activity: IFollow): Promise<void> => { export default async (actor: IRemoteUser, activity: IFollow): Promise<void> => {
const prefix = config.url + '/@'; 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)) { if (!id.startsWith(prefix)) {
return null; return null;