mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
"Enable" remote room search (#2099)
* "Enable" remote room search Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Update go.mod * Fix formatting
This commit is contained in:
parent
48789ebec5
commit
f034098877
1 changed files with 6 additions and 1 deletions
|
@ -63,7 +63,12 @@ func GetPostPublicRooms(
|
||||||
serverName := gomatrixserverlib.ServerName(request.Server)
|
serverName := gomatrixserverlib.ServerName(request.Server)
|
||||||
|
|
||||||
if serverName != "" && serverName != cfg.Matrix.ServerName {
|
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 {
|
if err != nil {
|
||||||
util.GetLogger(req.Context()).WithError(err).Error("failed to get public rooms")
|
util.GetLogger(req.Context()).WithError(err).Error("failed to get public rooms")
|
||||||
return jsonerror.InternalServerError()
|
return jsonerror.InternalServerError()
|
||||||
|
|
Loading…
Reference in a new issue