]> Untitled Git - lemmy.git/blobdiff - crates/apub/src/objects/comment.rs
Adding distinguish comment. Fixes #2002 (#2391)
[lemmy.git] / crates / apub / src / objects / comment.rs
index 88b08746c15ea6507ccbd7067f38118900364328..82601170e1d7a9f7563b389eaed18e32ef89a87d 100644 (file)
@@ -121,6 +121,7 @@ impl ApubObject for ApubComment {
       published: Some(convert_datetime(self.published)),
       updated: self.updated.map(convert_datetime),
       tag: maa.tags,
+      distinguished: Some(self.distinguished),
     };
 
     Ok(note)
@@ -184,6 +185,7 @@ impl ApubObject for ApubComment {
       updated: note.updated.map(|u| u.naive_local()),
       deleted: None,
       ap_id: Some(note.id.into()),
+      distinguished: note.distinguished,
       local: Some(false),
     };
     let parent_comment_path = parent_comment.map(|t| t.0.path);