* Fix *All* reports not showing. Fixes #2902
* Fix *All* reports not showing. Fixes #2902
* Fixing tests.
query = query.filter(post::community_id.eq(community_id));
}
- if self.unresolved_only.unwrap_or(true) {
+ if self.unresolved_only.unwrap_or(false) {
query = query.filter(comment_report::resolved.eq(false));
}
.pool(pool)
.my_person_id(inserted_timmy.id)
.admin(false)
+ .unresolved_only(Some(true))
.build()
.list()
.await
query = query.filter(post::community_id.eq(community_id));
}
- if self.unresolved_only.unwrap_or(true) {
+ if self.unresolved_only.unwrap_or(false) {
query = query.filter(post_report::resolved.eq(false));
}
.pool(pool)
.my_person_id(inserted_timmy.id)
.admin(false)
+ .unresolved_only(Some(true))
.build()
.list()
.await
))
.into_boxed();
- if self.unresolved_only.unwrap_or(true) {
+ if self.unresolved_only.unwrap_or(false) {
query = query.filter(private_message_report::resolved.eq(false));
}