]> Untitled Git - lemmy.git/commitdiff
Fall back to String for Comment::path when not using the full feature (#2941)
authorderivator <derivator@users.noreply.github.com>
Wed, 7 Jun 2023 13:38:46 +0000 (15:38 +0200)
committerGitHub <noreply@github.com>
Wed, 7 Jun 2023 13:38:46 +0000 (09:38 -0400)
crates/db_schema/src/source/comment.rs

index 78336ff36a2fbcf7a2b2a9fc1504b51a26a6aa37..ecf745ee99e4b07149b5f0695c494fd4f0897129 100644 (file)
@@ -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,