client-api: use authentication for profile api for synapse
This commit is contained in:
parent
1c0dab5a47
commit
f8eedfe44d
@ -36,3 +36,4 @@ matches = "0.1.8"
|
||||
[features]
|
||||
unstable-exhaustive-types = []
|
||||
unstable-pre-spec = []
|
||||
unstable-synapse-quirks = []
|
||||
|
@ -10,7 +10,10 @@ ruma_api! {
|
||||
name: "get_avatar_url",
|
||||
path: "/_matrix/client/r0/profile/:user_id/avatar_url",
|
||||
rate_limited: false,
|
||||
#[cfg(not(feature = "unstable-synapse-quirks"))]
|
||||
authentication: None,
|
||||
#[cfg(feature = "unstable-synapse-quirks")]
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
||||
request: {
|
||||
|
@ -10,7 +10,10 @@ ruma_api! {
|
||||
name: "get_display_name",
|
||||
path: "/_matrix/client/r0/profile/:user_id/displayname",
|
||||
rate_limited: false,
|
||||
#[cfg(not(feature = "unstable-synapse-quirks"))]
|
||||
authentication: None,
|
||||
#[cfg(feature = "unstable-synapse-quirks")]
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
||||
request: {
|
||||
|
@ -10,7 +10,10 @@ ruma_api! {
|
||||
name: "get_profile",
|
||||
path: "/_matrix/client/r0/profile/:user_id",
|
||||
rate_limited: false,
|
||||
#[cfg(not(feature = "unstable-synapse-quirks"))]
|
||||
authentication: None,
|
||||
#[cfg(feature = "unstable-synapse-quirks")]
|
||||
authentication: AccessToken,
|
||||
}
|
||||
|
||||
request: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user