mirror of https://github.com/usbharu/Hideout.git
feat: activityの判定をゆるく
This commit is contained in:
parent
de0516d710
commit
f119493b19
|
@ -38,6 +38,7 @@ fun Application.user(userService: UserService,activityPubUserService: ActivityPu
|
|||
}
|
||||
get("/{name}") {
|
||||
val contentType = ContentType.parse(call.request.accept() ?: "*/*")
|
||||
call.application.environment.log.debug("Accept Content-Type : ${contentType.contentType}/${contentType.contentSubtype} ${contentType.parameters}")
|
||||
val typeOfActivityPub = HttpUtil.isContentTypeOfActivityPub(
|
||||
contentType.contentType,
|
||||
contentType.contentSubtype,
|
||||
|
|
|
@ -15,7 +15,7 @@ object HttpUtil {
|
|||
if (subType == "activity+json") {
|
||||
return true
|
||||
}
|
||||
if (subType == "ld+json" && parameter == "https://www.w3.org/ns/activitystreams") {
|
||||
if (subType == "ld+json") {
|
||||
return true
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue