aboutsummaryrefslogtreecommitdiff
path: root/federationapi/api
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-01-25 17:00:39 +0000
committerGitHub <noreply@github.com>2022-01-25 17:00:39 +0000
commit8a1bc70524ecf536c8baafd5f0c312a89693ccc5 (patch)
treed745c871eee2cb81a103f829f0652c7a5e1ea666 /federationapi/api
parent49a618dfe2921ab451002e926e029d3c9fe1c0ae (diff)
Exclude our own server name in `GetJoinedHostsForRooms` (#2110)
* Exclude our own servername * Make excluding self behaviour optional
Diffstat (limited to 'federationapi/api')
-rw-r--r--federationapi/api/api.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/federationapi/api/api.go b/federationapi/api/api.go
index 5d4eb884..7be19dad 100644
--- a/federationapi/api/api.go
+++ b/federationapi/api/api.go
@@ -186,7 +186,8 @@ type PerformServersAliveResponse struct {
// QueryJoinedHostServerNamesInRoomRequest is a request to QueryJoinedHostServerNames
type QueryJoinedHostServerNamesInRoomRequest struct {
- RoomID string `json:"room_id"`
+ RoomID string `json:"room_id"`
+ ExcludeSelf bool `json:"exclude_self"`
}
// QueryJoinedHostServerNamesInRoomResponse is a response to QueryJoinedHostServerNames