Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Federation requests must be for local users. #1672

Merged
merged 3 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify that federation requests for non-local users are invalid.
2 changes: 1 addition & 1 deletion data/api/server-server/query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ paths:
parameters:
- in: query
name: user_id
description: The user ID to query.
description: The user ID to query. Must be a user local to the receiving homeserver.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is already mentioned in the description. I suppose there is no harm in repeating it.

required: true
example: "@someone:example.org"
schema:
Expand Down
6 changes: 4 additions & 2 deletions data/api/server-server/user_keys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ paths:
type: object
description: |-
The keys to be claimed. A map from user ID, to a map from
device ID to algorithm name.
device ID to algorithm name. Requested users must be local
to the receiving homeserver.
additionalProperties:
type: object
additionalProperties:
Expand Down Expand Up @@ -121,7 +122,8 @@ paths:
description: |-
The keys to be downloaded. A map from user ID, to a list of
device IDs, or to an empty list to indicate all devices for the
corresponding user.
corresponding user. Requested users must be local to the
receiving homeserver.
additionalProperties:
type: array
items:
Expand Down
Loading