mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 11:23:11 -06:00
Lazy match aliases, add TODOs
This commit is contained in:
parent
d043b98ff0
commit
216b7746a6
|
|
@ -73,8 +73,8 @@ const selectPublicRoomsWithFilterSQL = "" +
|
|||
" FROM publicroomsapi_public_rooms" +
|
||||
" WHERE visibility = true" +
|
||||
" AND (LOWER(name) LIKE LOWER($1)" +
|
||||
" OR LOWER(topic) LIKE LOWER($1))" +
|
||||
//" OR LOWER(ARRAY_TO_STRING(aliases, ',')) LIKE LOWER($1))" +
|
||||
" OR LOWER(topic) LIKE LOWER($1)" +
|
||||
" OR LOWER(aliases) LIKE LOWER($1))" + // TODO: Is there a better way to search aliases?
|
||||
" ORDER BY joined_members DESC" +
|
||||
" LIMIT 30 OFFSET $2"
|
||||
|
||||
|
|
@ -83,8 +83,8 @@ const selectPublicRoomsWithLimitAndFilterSQL = "" +
|
|||
" FROM publicroomsapi_public_rooms" +
|
||||
" WHERE visibility = true" +
|
||||
" AND (LOWER(name) LIKE LOWER($1)" +
|
||||
" OR LOWER(topic) LIKE LOWER($1))" +
|
||||
// " OR LOWER(ARRAY_TO_STRING(aliases, ',')) LIKE LOWER($1))" +
|
||||
" OR LOWER(topic) LIKE LOWER($1)" +
|
||||
" OR LOWER(aliases) LIKE LOWER($1))" + // TODO: Is there a better way to search aliases?
|
||||
" ORDER BY joined_members DESC" +
|
||||
" LIMIT $3 OFFSET $2"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue