diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-01-25 17:00:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 17:00:39 +0000 |
commit | 8a1bc70524ecf536c8baafd5f0c312a89693ccc5 (patch) | |
tree | d745c871eee2cb81a103f829f0652c7a5e1ea666 /federationapi/internal | |
parent | 49a618dfe2921ab451002e926e029d3c9fe1c0ae (diff) |
Exclude our own server name in `GetJoinedHostsForRooms` (#2110)
* Exclude our own servername
* Make excluding self behaviour optional
Diffstat (limited to 'federationapi/internal')
-rw-r--r-- | federationapi/internal/query.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/federationapi/internal/query.go b/federationapi/internal/query.go index bac81333..31d1a3c4 100644 --- a/federationapi/internal/query.go +++ b/federationapi/internal/query.go @@ -16,7 +16,7 @@ func (f *FederationInternalAPI) QueryJoinedHostServerNamesInRoom( request *api.QueryJoinedHostServerNamesInRoomRequest, response *api.QueryJoinedHostServerNamesInRoomResponse, ) (err error) { - joinedHosts, err := f.db.GetJoinedHostsForRooms(ctx, []string{request.RoomID}) + joinedHosts, err := f.db.GetJoinedHostsForRooms(ctx, []string{request.RoomID}, request.ExcludeSelf) if err != nil { return } |