From e5730102021f5f9631565f2a067077091a1d0a51 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Thu, 16 Nov 2023 13:50:15 +0000 Subject: [PATCH] Fix report count endpoint error (#4167) --- crates/api/src/local_user/report_count.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/api/src/local_user/report_count.rs b/crates/api/src/local_user/report_count.rs index 666886432..6f219297a 100644 --- a/crates/api/src/local_user/report_count.rs +++ b/crates/api/src/local_user/report_count.rs @@ -1,4 +1,4 @@ -use actix_web::web::{Data, Json}; +use actix_web::web::{Data, Json, Query}; use lemmy_api_common::{ context::LemmyContext, person::{GetReportCount, GetReportCountResponse}, @@ -14,7 +14,7 @@ use lemmy_utils::error::LemmyError; #[tracing::instrument(skip(context))] pub async fn report_count( - data: Json, + data: Query, context: Data, local_user_view: LocalUserView, ) -> Result, LemmyError> {