feat: DeliverPostJobを登録

This commit is contained in:
usbharu 2023-04-21 21:16:38 +09:00
parent 02d262f36c
commit 74b6950876
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import dev.usbharu.hideout.config.Config
import dev.usbharu.hideout.config.ConfigData
import dev.usbharu.hideout.domain.model.job.DeliverPostJob
import dev.usbharu.hideout.domain.model.job.ReceiveFollowJob
import dev.usbharu.hideout.plugins.*
import dev.usbharu.hideout.repository.*
@ -114,4 +115,9 @@ fun Application.worker() {
activityPubService.processActivity(this, it)
}
}
kJob.register(DeliverPostJob){
execute {
activityPubService.processActivity(this, it)
}
}
}