aboutsummaryrefslogtreecommitdiff
path: root/clientapi/routing/directory_public.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/routing/directory_public.go')
-rw-r--r--clientapi/routing/directory_public.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/routing/directory_public.go b/clientapi/routing/directory_public.go
index b1043e99..60674476 100644
--- a/clientapi/routing/directory_public.go
+++ b/clientapi/routing/directory_public.go
@@ -74,7 +74,7 @@ func GetPostPublicRooms(
serverName := gomatrixserverlib.ServerName(request.Server)
if serverName != "" && !cfg.Matrix.IsLocalServerName(serverName) {
res, err := federation.GetPublicRoomsFiltered(
- req.Context(), serverName,
+ req.Context(), cfg.Matrix.ServerName, serverName,
int(request.Limit), request.Since,
request.Filter.SearchTerms, false,
"",