This commit is contained in:
Felix Ableitner 2024-09-19 14:11:20 +02:00
parent 1bcc34a199
commit 6c6f7c6dff
3 changed files with 4 additions and 6 deletions

View file

@ -1,3 +1,4 @@
use super::not_zero;
use crate::site::{application_question_check, site_default_post_listing_type_check};
use activitypub_federation::{config::Data, http_signatures::generate_actor_keypair};
use actix_web::web::Json;
@ -41,8 +42,6 @@ use lemmy_utils::{
};
use url::Url;
use super::not_zero;
#[tracing::instrument(skip(context))]
pub async fn create_site(
data: Json<CreateSite>,

View file

@ -98,6 +98,6 @@ mod tests {
fn not_zero(val: Option<i32>) -> Option<i32> {
match val {
Some(0) => None,
v => v
v => v,
}
}
}

View file

@ -1,3 +1,4 @@
use super::not_zero;
use crate::site::{application_question_check, site_default_post_listing_type_check};
use activitypub_federation::config::Data;
use actix_web::web::Json;
@ -46,8 +47,6 @@ use lemmy_utils::{
},
};
use super::not_zero;
#[tracing::instrument(skip(context))]
pub async fn update_site(
data: Json<EditSite>,