From 19458e9adc5a91c7c0a876141f928911cb3cd1c6 Mon Sep 17 00:00:00 2001 From: usbharu Date: Tue, 14 May 2024 15:11:02 +0900 Subject: [PATCH] wip --- .../interfaces/api/actor/UserAPControllerImpl.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hideout-core/src/main/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/actor/UserAPControllerImpl.kt b/hideout-core/src/main/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/actor/UserAPControllerImpl.kt index 18378e42..232f2a05 100644 --- a/hideout-core/src/main/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/actor/UserAPControllerImpl.kt +++ b/hideout-core/src/main/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/actor/UserAPControllerImpl.kt @@ -32,7 +32,11 @@ class UserAPControllerImpl(private val apUserService: APUserService) : UserAPCon } catch (_: UserNotFoundException) { return ResponseEntity.notFound().build() } - person.context += listOf(StringOrObject("https://www.w3.org/ns/activitystreams")) + person.context += listOf( + StringOrObject("https://www.w3.org/ns/activitystreams"), + StringOrObject("https://w3id.org/security/v1"), + StringOrObject(mapOf("manuallyApprovesFollowers" to "as:manuallyApprovesFollowers")) + ) return ResponseEntity(person, HttpStatus.OK) } }