mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-10 11:14:58 +00:00
fix: contextにactivitystreamsを追加
This commit is contained in:
@@ -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 {
|
suspend fun HttpClient.postAp(urlString: String, username: String, jsonLd: JsonLd): HttpResponse {
|
||||||
|
jsonLd.context += "https://www.w3.org/ns/activitystreams"
|
||||||
return this.post(urlString) {
|
return this.post(urlString) {
|
||||||
header("Accept", ContentType.Application.Activity)
|
header("Accept", ContentType.Application.Activity)
|
||||||
header("Content-Type", ContentType.Application.Activity)
|
header("Content-Type", ContentType.Application.Activity)
|
||||||
|
|||||||
Reference in New Issue
Block a user