From 68cc469a439f13e2d66e8d499839c5e794be361c Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Mon, 10 Apr 2023 02:49:44 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Accept=E3=82=92=E9=80=81=E3=82=8B?= =?UTF-8?q?=E3=81=A8=E3=81=93=E3=82=8D=E3=81=A7Follow=E3=82=92=E9=80=81?= =?UTF-8?q?=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=81=A7=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/activitypub/ActivityPubFollowServiceImpl.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/service/activitypub/ActivityPubFollowServiceImpl.kt b/src/main/kotlin/dev/usbharu/hideout/service/activitypub/ActivityPubFollowServiceImpl.kt index f96c3cb8..925a735c 100644 --- a/src/main/kotlin/dev/usbharu/hideout/service/activitypub/ActivityPubFollowServiceImpl.kt +++ b/src/main/kotlin/dev/usbharu/hideout/service/activitypub/ActivityPubFollowServiceImpl.kt @@ -1,6 +1,7 @@ package dev.usbharu.hideout.service.activitypub import com.fasterxml.jackson.module.kotlin.readValue +import dev.usbharu.hideout.ap.Accept import dev.usbharu.hideout.ap.Follow import dev.usbharu.hideout.config.Config import dev.usbharu.hideout.domain.model.ActivityPubResponse @@ -34,7 +35,11 @@ class ActivityPubFollowServiceImpl( httpClient.postAp( urlString = person.inbox ?: throw IllegalArgumentException("inbox is not found"), username = "${props[ReceiveFollowJob.targetActor]}#pubkey", - jsonLd = follow + jsonLd = Accept( + name = "Follow", + `object` = follow, + actor = props[ReceiveFollowJob.targetActor] + ) ) } }