mirror of https://github.com/usbharu/Hideout.git
fix: ブロックとフォロー承認が出来なかった問題を修正
This commit is contained in:
parent
539c65ada2
commit
2dd0bfcb8d
|
@ -35,8 +35,8 @@ class ApAcceptProcessor(
|
|||
val user = userQueryService.findByUrl(userUrl)
|
||||
val follower = userQueryService.findByUrl(followerUrl)
|
||||
|
||||
relationshipService.acceptFollowRequest(follower.id, user.id)
|
||||
logger.debug("SUCCESS Follow from ${follower.url} to ${user.url}.")
|
||||
relationshipService.acceptFollowRequest(user.id, follower.id)
|
||||
logger.debug("SUCCESS Follow from ${user.url} to ${follower.url}.")
|
||||
}
|
||||
|
||||
override fun isSupported(activityType: ActivityType): Boolean = activityType == ActivityType.Accept
|
||||
|
|
|
@ -39,14 +39,14 @@ class DeliverBlockJob(@Qualifier("activitypub") private val objectMapper: Object
|
|||
override fun convert(value: DeliverBlockJobParam): ScheduleContext<DeliverBlockJob>.(DeliverBlockJob) -> Unit = {
|
||||
props[block] = objectMapper.writeValueAsString(value.block)
|
||||
props[reject] = objectMapper.writeValueAsString(value.reject)
|
||||
props[reject] = value.inbox
|
||||
props[inbox] = value.inbox
|
||||
props[signer] = value.signer
|
||||
}
|
||||
|
||||
override fun convert(props: JobProps<DeliverBlockJob>): DeliverBlockJobParam = DeliverBlockJobParam(
|
||||
props[signer],
|
||||
objectMapper.readValue(props[block]),
|
||||
objectMapper.readValue(props[reject]),
|
||||
props[inbox]
|
||||
signer = props[signer],
|
||||
block = objectMapper.readValue(props[block]),
|
||||
reject = objectMapper.readValue(props[reject]),
|
||||
inbox = props[inbox]
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue