-use lemmy_db_views::{
- comment_view::CommentQuery,
- structs::{LocalUserSettingsView, LocalUserView},
-};
+use lemmy_db_views::{comment_view::CommentQuery, structs::LocalUserView};
match jwt {
Some(jwt) => {
let claims = Claims::decode(jwt.as_ref(), &secret.jwt_secret)
.map_err(|e| e.with_message("not_logged_in"))?
.claims;
let local_user_id = LocalUserId(claims.sub);
match jwt {
Some(jwt) => {
let claims = Claims::decode(jwt.as_ref(), &secret.jwt_secret)
.map_err(|e| e.with_message("not_logged_in"))?
.claims;
let local_user_id = LocalUserId(claims.sub);
check_user_valid(
local_user_view.person.banned,
local_user_view.person.ban_expires,
check_user_valid(
local_user_view.person.banned,
local_user_view.person.ban_expires,
settings: &Settings,
) -> Result<(), LemmyError> {
// Collect the admins with emails
settings: &Settings,
) -> Result<(), LemmyError> {
// Collect the admins with emails
let applications_link = &format!(
"{}/registration_applications",
let applications_link = &format!(
"{}/registration_applications",
settings: &Settings,
) -> Result<(), LemmyError> {
// Collect the admins with emails
settings: &Settings,
) -> Result<(), LemmyError> {
// Collect the admins with emails