From b4380cb548f507ab53fa0808ab21d8270646cb36 Mon Sep 17 00:00:00 2001 From: RocketDerp <113625597+RocketDerp@users.noreply.github.com> Date: Wed, 2 Aug 2023 09:31:28 -0700 Subject: [PATCH] Do not hide read posts when it is a user profile view (#3791) --- crates/db_views/src/post_view.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/db_views/src/post_view.rs b/crates/db_views/src/post_view.rs index 9f6d0735f..3243bca88 100644 --- a/crates/db_views/src/post_view.rs +++ b/crates/db_views/src/post_view.rs @@ -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() {