]> Untitled Git - lemmy.git/blobdiff - crates/routes/src/feeds.rs
Pass LocalUser to PostQuery etc, instead of separate params (#2413)
[lemmy.git] / crates / routes / src / feeds.rs
index 5840687a0b63b5406b37b586260f5514a7c0e5bc..592aeb2ddac08f844efbd2f350822039ef612bda 100644 (file)
@@ -256,9 +256,7 @@ fn get_feed_front(
   let posts = PostQuery::builder()
     .conn(conn)
     .listing_type(Some(ListingType::Subscribed))
-    .my_person_id(Some(local_user.person_id))
-    .show_bot_accounts(Some(local_user.show_bot_accounts))
-    .show_read_posts(Some(local_user.show_read_posts))
+    .local_user(Some(&local_user))
     .sort(Some(*sort_type))
     .limit(Some(RSS_FETCH_LIMIT))
     .build()