Fix remote follow (#2606)

This commit is contained in:
MeiMei
2018-09-04 18:33:16 +09:00
committed by syuilo
parent a0735b0e7a
commit eaec936fa6
8 changed files with 18 additions and 16 deletions

View File

@@ -7,8 +7,6 @@ import { deliver } from '../../../queue';
import FollowRequest from '../../../models/follow-request';
export default async function(follower: IUser, followee: IUser) {
if (!followee.isLocked) throw '対象のアカウントは鍵アカウントではありません';
await FollowRequest.insert({
createdAt: new Date(),
followerId: follower._id,