Update crates/db_views/src/post_view.rs

Co-authored-by: dullbananas <dull.bananas0@gmail.com>
This commit is contained in:
leoseg 2024-12-20 16:40:27 +01:00 committed by GitHub
parent fed3ae28cd
commit 11f58b6a9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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),