use crate::Perform;
use actix_web::web::Data;
use lemmy_api_common::{
+ context::LemmyContext,
person::{BannedPersonsResponse, GetBannedPersons},
utils::{get_local_user_view_from_jwt, is_admin},
- LemmyContext,
};
-use lemmy_db_views_actor::structs::PersonViewSafe;
+use lemmy_db_views_actor::structs::PersonView;
use lemmy_utils::{error::LemmyError, ConnectionId};
#[async_trait::async_trait(?Send)]
// Make sure user is an admin
is_admin(&local_user_view)?;
- let banned = PersonViewSafe::banned(context.pool()).await?;
+ let banned = PersonView::banned(context.pool()).await?;
let res = Self::Response { banned };