X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi%2Fsrc%2Fpost_report%2Flist.rs;h=f5edab703e201f315c587387ab88822616f3e25a;hb=c8063f3267cf2b3622f1fdc69128c6b55feefbbc;hp=a0d909681de0abaa8545db08f8675e0f60c7b92a;hpb=88215bfbc98b70595035426c06cfe67f4a9ab0ab;p=lemmy.git diff --git a/crates/api/src/post_report/list.rs b/crates/api/src/post_report/list.rs index a0d90968..f5edab70 100644 --- a/crates/api/src/post_report/list.rs +++ b/crates/api/src/post_report/list.rs @@ -23,7 +23,7 @@ impl Perform for ListPostReports { let local_user_view = local_user_view_from_jwt(&data.auth, context).await?; let community_id = data.community_id; - let unresolved_only = data.unresolved_only; + let unresolved_only = data.unresolved_only.unwrap_or_default(); let page = data.page; let limit = data.limit;