local_instance,
objects::read_from_string_or_source_opt,
protocol::{
- objects::{
- instance::{Instance, InstanceType},
- LanguageTag,
- },
+ objects::{instance::Instance, LanguageTag},
ImageObject,
Source,
},
traits::{Actor, ApubObject},
utils::verify_domains_match,
};
+use activitystreams_kinds::actor::ApplicationType;
use chrono::NaiveDateTime;
use lemmy_api_common::{context::LemmyContext, utils::local_site_opt_to_slur_regex};
use lemmy_db_schema::{
let language = LanguageTag::new_multiple(langs, data.pool()).await?;
let instance = Instance {
- kind: InstanceType::Service,
+ kind: ApplicationType::Application,
id: ObjectId::new(self.actor_id()),
name: self.name.clone(),
content: self.sidebar.as_ref().map(|d| markdown_to_html(d)),