Skip to content

Commit

Permalink
Update crates/db_views/src/post_view.rs
Browse files Browse the repository at this point in the history
Co-authored-by: dullbananas <[email protected]>
  • Loading branch information
leoseg and dullbananas authored Dec 20, 2024
1 parent fed3ae2 commit 11f58b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/db_views/src/post_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1259,13 +1259,13 @@ mod tests {
let pool = &data.pool();
let pool = &mut pool.into();

// Read only the bot post
// Only mark the bot post as read
// The read_only should only show the bot post
let post_save_form =
let post_read_form =
PostReadForm::new(data.inserted_bot_post.id, data.local_user_view.person.id);
PostRead::mark_as_read(pool, &post_save_form).await?;
PostRead::mark_as_read(pool, &post_read_form).await?;

// Read the saved only
// Only read the post marked as read
let read_read_post_listing = PostQuery {
community_id: Some(data.inserted_community.id),
read_only: Some(true),
Expand Down

0 comments on commit 11f58b6

Please sign in to comment.