- const [ actorFollow ] = await ActorFollowModel.findOrCreate<MActorFollowActors>({
- where: {
- actorId: fromActor.id,
- targetActorId: targetActor.id
- },
- defaults: {
- state,
- url: getLocalActorFollowActivityPubUrl(fromActor, targetActor),
- actorId: fromActor.id,
- targetActorId: targetActor.id
- },
+ const [ actorFollow ] = await ActorFollowModel.findOrCreateCustom({
+ byActor: fromActor,
+ state,
+ targetActor,
+ activityId: getLocalActorFollowActivityPubUrl(fromActor, targetActor),