]> Untitled Git - lemmy.git/blobdiff - crates/api_common/src/post.rs
Embed Peertube videos (#2261)
[lemmy.git] / crates / api_common / src / post.rs
index 38aceed9ed9b118d4361dcfcf38a7b48e13470e8..8c05790e92c21f0ba6bc568fe1420af5fbcab1a0 100644 (file)
@@ -1,6 +1,6 @@
 use crate::sensitive::Sensitive;
 use lemmy_db_schema::{
-  newtypes::{CommunityId, PostId, PostReportId},
+  newtypes::{CommunityId, DbUrl, PostId, PostReportId},
   ListingType,
   SortType,
 };
@@ -166,6 +166,6 @@ pub struct GetSiteMetadataResponse {
 pub struct SiteMetadata {
   pub title: Option<String>,
   pub description: Option<String>,
-  pub(crate) image: Option<Url>,
-  pub html: Option<String>,
+  pub(crate) image: Option<DbUrl>,
+  pub embed_video_url: Option<DbUrl>,
 }