mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-22 11:41:38 +00:00
Increase limit
This commit is contained in:
parent
02e6d89cc2
commit
82df194858
@ -46,7 +46,7 @@ const (
|
|||||||
|
|
||||||
// Defaults sets the request defaults
|
// Defaults sets the request defaults
|
||||||
func Defaults(r *gomatrixserverlib.MSC2946SpacesRequest) {
|
func Defaults(r *gomatrixserverlib.MSC2946SpacesRequest) {
|
||||||
r.Limit = 100
|
r.Limit = 2000
|
||||||
r.MaxRoomsPerSpace = -1
|
r.MaxRoomsPerSpace = -1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,9 +108,6 @@ func federatedSpacesHandler(
|
|||||||
JSON: jsonerror.BadJSON("The request body could not be decoded into valid JSON. " + err.Error()),
|
JSON: jsonerror.BadJSON("The request body could not be decoded into valid JSON. " + err.Error()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if r.Limit > 100 {
|
|
||||||
r.Limit = 100
|
|
||||||
}
|
|
||||||
w := walker{
|
w := walker{
|
||||||
req: &r,
|
req: &r,
|
||||||
rootRoomID: roomID,
|
rootRoomID: roomID,
|
||||||
|
Loading…
Reference in New Issue
Block a user