mirror of https://github.com/usbharu/Hideout.git
fix: contextにactivitystreamsを追加
This commit is contained in:
parent
83b0511b78
commit
79b95354ac
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue