From: derivator Date: Wed, 7 Jun 2023 13:38:46 +0000 (+0200) Subject: Fall back to String for Comment::path when not using the full feature (#2941) X-Git-Url: http://these/git/%22https:/nerdica.net/photo/contact/80/%7BdocsUrl%7D?a=commitdiff_plain;h=9419dd7c05e65ae52218da9c36002f424999889f;p=lemmy.git Fall back to String for Comment::path when not using the full feature (#2941) --- diff --git a/crates/db_schema/src/source/comment.rs b/crates/db_schema/src/source/comment.rs index 78336ff3..ecf745ee 100644 --- a/crates/db_schema/src/source/comment.rs +++ b/crates/db_schema/src/source/comment.rs @@ -38,6 +38,8 @@ pub struct Comment { #[cfg_attr(feature = "full", ts(type = "string"))] /// The path / tree location of a comment, separated by dots, ending with the comment's id. Ex: 0.24.27 pub path: Ltree, + #[cfg(not(feature = "full"))] + pub path: String, /// Whether the comment has been distinguished(speaking officially) by a mod. pub distinguished: bool, pub language_id: LanguageId,