mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-29 07:50:21 +00:00
Fixing community search not using auth. Fixes #1411
This commit is contained in:
parent
d5d99fa3b9
commit
4864f80656
1 changed files with 3 additions and 0 deletions
|
@ -405,6 +405,7 @@ impl Perform for Search {
|
||||||
CommunityQueryBuilder::create(conn)
|
CommunityQueryBuilder::create(conn)
|
||||||
.sort(&sort)
|
.sort(&sort)
|
||||||
.search_term(q)
|
.search_term(q)
|
||||||
|
.my_user_id(user_id)
|
||||||
.page(page)
|
.page(page)
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.list()
|
.list()
|
||||||
|
@ -458,6 +459,7 @@ impl Perform for Search {
|
||||||
CommunityQueryBuilder::create(conn)
|
CommunityQueryBuilder::create(conn)
|
||||||
.sort(&sort)
|
.sort(&sort)
|
||||||
.search_term(q)
|
.search_term(q)
|
||||||
|
.my_user_id(user_id)
|
||||||
.page(page)
|
.page(page)
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.list()
|
.list()
|
||||||
|
@ -482,6 +484,7 @@ impl Perform for Search {
|
||||||
PostQueryBuilder::create(conn)
|
PostQueryBuilder::create(conn)
|
||||||
.sort(&sort)
|
.sort(&sort)
|
||||||
.show_nsfw(true)
|
.show_nsfw(true)
|
||||||
|
.my_user_id(user_id)
|
||||||
.community_id(community_id)
|
.community_id(community_id)
|
||||||
.community_name(community_name)
|
.community_name(community_name)
|
||||||
.url_search(q)
|
.url_search(q)
|
||||||
|
|
Loading…
Reference in a new issue