Do not hide read posts when it is a user profile view (#3791)
This commit is contained in:
parent
58388f2ce8
commit
b4380cb548
1 changed files with 4 additions and 1 deletions
|
@ -308,8 +308,11 @@ fn queries<'a>() -> Queries<
|
||||||
.map(|l| l.local_user.show_read_posts)
|
.map(|l| l.local_user.show_read_posts)
|
||||||
.unwrap_or(true)
|
.unwrap_or(true)
|
||||||
{
|
{
|
||||||
|
// 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());
|
query = query.filter(post_read::post_id.is_null());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if options.local_user.is_some() {
|
if options.local_user.is_some() {
|
||||||
// Filter out the rows with missing languages
|
// Filter out the rows with missing languages
|
||||||
|
|
Loading…
Reference in a new issue