+ let languages = LanguageTag::to_language_id_multiple(apub.language, data.pool()).await?;
+
+ let site = blocking(data.pool(), move |conn| {
+ let site = Site::upsert(conn, &site_form)?;
+ SiteLanguage::update(conn, languages, site.id)?;
+ Ok::<Site, diesel::result::Error>(site)
+ })
+ .await??;