mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 11:21:32 +00:00
Update crates/db_views/src/post_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
This commit is contained in:
parent
fed3ae28cd
commit
11f58b6a9c
1 changed files with 4 additions and 4 deletions
|
@ -1259,13 +1259,13 @@ mod tests {
|
||||||
let pool = &data.pool();
|
let pool = &data.pool();
|
||||||
let pool = &mut pool.into();
|
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
|
// 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);
|
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 {
|
let read_read_post_listing = PostQuery {
|
||||||
community_id: Some(data.inserted_community.id),
|
community_id: Some(data.inserted_community.id),
|
||||||
read_only: Some(true),
|
read_only: Some(true),
|
||||||
|
|
Loading…
Reference in a new issue