]> Untitled Git - lemmy.git/commitdiff
Do not hide read posts when it is a user profile view (#3791)
authorRocketDerp <113625597+RocketDerp@users.noreply.github.com>
Wed, 2 Aug 2023 16:31:28 +0000 (09:31 -0700)
committerGitHub <noreply@github.com>
Wed, 2 Aug 2023 16:31:28 +0000 (12:31 -0400)
crates/db_views/src/post_view.rs

index 9f6d0735f107ad2cc369d67025f04d4572c2e879..3243bca882dae9a08e05bb4f6f56ab09393d24e2 100644 (file)
@@ -308,7 +308,10 @@ fn queries<'a>() -> Queries<
       .map(|l| l.local_user.show_read_posts)
       .unwrap_or(true)
     {
-      query = query.filter(post_read::post_id.is_null());
+      // Do not hide read posts when it is a user profile view
+      if !is_profile_view {
+        query = query.filter(post_read::post_id.is_null());
+      }
     }
 
     if options.local_user.is_some() {