From: RocketDerp <113625597+RocketDerp@users.noreply.github.com> Date: Wed, 2 Aug 2023 16:31:28 +0000 (-0700) Subject: Do not hide read posts when it is a user profile view (#3791) X-Git-Url: http://these/git/%24%7B%60data:application/static/%7B%60https:/%7B%60/feeds/%7BpictrsAvatarThumbnail%28user.avatar%29%7D?a=commitdiff_plain;h=b4380cb548f507ab53fa0808ab21d8270646cb36;p=lemmy.git Do not hide read posts when it is a user profile view (#3791) --- diff --git a/crates/db_views/src/post_view.rs b/crates/db_views/src/post_view.rs index 9f6d0735..3243bca8 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() {