From 11f58b6a9c73613bcc879c4d1cb044fe5c099366 Mon Sep 17 00:00:00 2001 From: leoseg <70430884+leoseg@users.noreply.github.com> Date: Fri, 20 Dec 2024 16:40:27 +0100 Subject: [PATCH] Update crates/db_views/src/post_view.rs Co-authored-by: dullbananas --- crates/db_views/src/post_view.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/db_views/src/post_view.rs b/crates/db_views/src/post_view.rs index 1abdcaa8a..38701ebb3 100644 --- a/crates/db_views/src/post_view.rs +++ b/crates/db_views/src/post_view.rs @@ -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),