Update crates/db_views/src/post_view.rs

Co-authored-by: dullbananas <dull.bananas0@gmail.com>
add_show_read_option
Dessalines 2024-06-21 16:15:48 -04:00 committed by GitHub
parent 051d4dc7a9
commit 3eccbfdc91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ fn queries<'a>() -> Queries<
}
// Only hide the read posts, if the saved_only is false. Otherwise ppl with the hide_read
// setting wont be able to see saved posts.
else if !(options.show_read.unwrap_or_default() || options.local_user.show_read_posts()) {
else if !options.show_read.unwrap_or(options.local_user.show_read_posts()) {
// Do not hide read posts when it is a user profile view
// Or, only hide read posts on non-profile views
if let (None, Some(person_id)) = (options.creator_id, options.local_user.person_id()) {