fix: contextにactivitystreamsを追加

This commit is contained in:
usbharu 2023-04-01 10:13:54 +09:00
parent 83b0511b78
commit 79b95354ac
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ suspend fun <T : JsonLd> ApplicationCall.respondAp(message: T, status: HttpStatu
}
suspend fun HttpClient.postAp(urlString: String, username: String, jsonLd: JsonLd): HttpResponse {
jsonLd.context += "https://www.w3.org/ns/activitystreams"
return this.post(urlString) {
header("Accept", ContentType.Application.Activity)
header("Content-Type", ContentType.Application.Activity)