mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-10 11:14:58 +00:00
fix: Signatureヘッダーを修正
This commit is contained in:
@@ -50,7 +50,7 @@ class ActivityPubUserService(
|
|||||||
val inboxUrl = person.inbox ?: throw IllegalArgumentException("inbox is not found")
|
val inboxUrl = person.inbox ?: throw IllegalArgumentException("inbox is not found")
|
||||||
httpClient.post(inboxUrl) {
|
httpClient.post(inboxUrl) {
|
||||||
contentType(ContentType.Application.Activity)
|
contentType(ContentType.Application.Activity)
|
||||||
header("Signature","keyId=\"${person.preferredUsername}\",algorithm=\"rsa-sha256\",headers=\"(request-target) host date\"")
|
header("Signature","keyId=\"${person.preferredUsername}\",algorithm=\"rsa-sha256\",headers=\"(request-target) digest date\"")
|
||||||
setBody(Accept(
|
setBody(Accept(
|
||||||
name = "Follow",
|
name = "Follow",
|
||||||
`object` = follow,
|
`object` = follow,
|
||||||
|
|||||||
Reference in New Issue
Block a user