- let post_reports = PostReportQuery::builder()
- .pool(context.pool())
- .my_person_id(person_id)
- .admin(admin)
- .community_id(community_id)
- .unresolved_only(unresolved_only)
- .page(page)
- .limit(limit)
- .build()
- .list()
- .await?;
+ let post_reports = PostReportQuery {
+ community_id,
+ unresolved_only,
+ page,
+ limit,
+ }
+ .list(&mut context.pool(), &local_user_view.person)
+ .await?;