name: string
host: string
isAutoFollow?: boolean
+ assertIsChannel?: boolean
}
async function processActivityPubFollow (job: Bull.Job) {
targetActor = await getOrCreateActorAndServerAndModel(actorUrl, 'all')
}
+ if (payload.assertIsChannel && !targetActor.VideoChannel) {
+ logger.warn('Do not follow %s@%s because it is not a channel.', name, host)
+ return
+ }
+
const fromActor = await ActorModel.load(payload.followerActorId)
return retryTransactionWrapper(follow, fromActor, targetActor, payload.isAutoFollow)