lemmy_api_common 1.0.0-beta.1

A link aggregator for the fediverse
Documentation
pub use lemmy_db_schema::{
  newtypes::CommentId,
  source::comment::{Comment, CommentActions, CommentInsertForm},
};
pub use lemmy_db_views_comment::{
  CommentSlimView,
  CommentView,
  api::{CommentResponse, GetComment, GetComments},
};

pub mod actions {
  pub use lemmy_db_views_comment::api::{
    CreateComment,
    CreateCommentLike,
    CreateCommentWarning,
    DeleteComment,
    EditComment,
    LockComment,
    SaveComment,
  };

  pub mod moderation {
    pub use lemmy_db_views_comment::api::{
      DistinguishComment,
      ListCommentLikes,
      PurgeComment,
      RemoveComment,
    };
  }
}