From 4864f806569750b77adfa26bf68874cb49eac68c Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 5 Feb 2021 10:36:28 -0500 Subject: [PATCH] Fixing community search not using auth. Fixes #1411 --- crates/api/src/site.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/api/src/site.rs b/crates/api/src/site.rs index 8fbb8f1c..96ce50ca 100644 --- a/crates/api/src/site.rs +++ b/crates/api/src/site.rs @@ -405,6 +405,7 @@ impl Perform for Search { CommunityQueryBuilder::create(conn) .sort(&sort) .search_term(q) + .my_user_id(user_id) .page(page) .limit(limit) .list() @@ -458,6 +459,7 @@ impl Perform for Search { CommunityQueryBuilder::create(conn) .sort(&sort) .search_term(q) + .my_user_id(user_id) .page(page) .limit(limit) .list() @@ -482,6 +484,7 @@ impl Perform for Search { PostQueryBuilder::create(conn) .sort(&sort) .show_nsfw(true) + .my_user_id(user_id) .community_id(community_id) .community_name(community_name) .url_search(q) -- 2.44.1