]> Untitled Git - lemmy.git/commitdiff
Fixing community local filter. #1302
authorDessalines <tyhou13@gmx.com>
Wed, 2 Dec 2020 21:04:13 +0000 (16:04 -0500)
committerDessalines <tyhou13@gmx.com>
Wed, 2 Dec 2020 21:04:13 +0000 (16:04 -0500)
lemmy_db/src/post_view.rs

index 3fb6d2b06417186d3e5576c6491e43119bbdc8be..ea03c3a4ddd501e1d5a7361d3c489cc507b17f19 100644 (file)
@@ -280,7 +280,7 @@ impl<'a> PostQueryBuilder<'a> {
     if let Some(for_community_name) = self.for_community_name {
       query = query
         .filter(community_name.eq(for_community_name))
-        .filter(local.eq(true))
+        .filter(community_local.eq(true))
         .then_order_by(stickied.desc());
     }