fix: contextにactivitystreamsを追加

This commit is contained in:
usbharu 2023-04-01 10:13:54 +09:00
parent 95168782bc
commit 28d592c9d1
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)