]> Untitled Git - lemmy.git/blobdiff - crates/api_common/src/comment.rs
Adding distinguish comment. Fixes #2002 (#2391)
[lemmy.git] / crates / api_common / src / comment.rs
index dc2360edd7c8c5fb2ea6cc0c5e868838954feb5e..df3ddbafacbe7a31537b0d55adc315046eeba7b4 100644 (file)
@@ -24,8 +24,9 @@ pub struct GetComment {
 
 #[derive(Debug, Serialize, Deserialize, Clone, Default)]
 pub struct EditComment {
-  pub content: String,
   pub comment_id: CommentId,
+  pub content: Option<String>,
+  pub distinguished: Option<bool>,
   pub form_id: Option<String>,
   pub auth: Sensitive<String>,
 }