diff options
author | S7evinK <2353100+S7evinK@users.noreply.github.com> | 2022-01-28 12:07:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 11:07:47 +0000 |
commit | f0340988777fa13727d458a56480f2c3f70d8660 (patch) | |
tree | 2f91655395e9869dc60717540e72592db58b2a88 /clientapi/routing | |
parent | 48789ebec526a7c61a9b9bc3a10949fbc45711ab (diff) |
"Enable" remote room search (#2099)
* "Enable" remote room search
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
* Update go.mod
* Fix formatting
Diffstat (limited to 'clientapi/routing')
-rw-r--r-- | clientapi/routing/directory_public.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clientapi/routing/directory_public.go b/clientapi/routing/directory_public.go index 2e3283be..0dacfced 100644 --- a/clientapi/routing/directory_public.go +++ b/clientapi/routing/directory_public.go @@ -63,7 +63,12 @@ func GetPostPublicRooms( serverName := gomatrixserverlib.ServerName(request.Server) if serverName != "" && serverName != cfg.Matrix.ServerName { - res, err := federation.GetPublicRooms(req.Context(), serverName, int(request.Limit), request.Since, false, "") + res, err := federation.GetPublicRoomsFiltered( + req.Context(), serverName, + int(request.Limit), request.Since, + request.Filter.SearchTerms, false, + "", + ) if err != nil { util.GetLogger(req.Context()).WithError(err).Error("failed to get public rooms") return jsonerror.InternalServerError() |