]> Untitled Git - lemmy.git/blobdiff - lemmy_db/src/source/post.rs
Some API cleanup, adding site_id to site aggregates.
[lemmy.git] / lemmy_db / src / source / post.rs
index 098ce8835316db5a72a6c005773e3ce4a3581634..948791ea4ae1f8abfd75b40a06a8a0e30e5113d1 100644 (file)
@@ -106,11 +106,6 @@ impl ApubObject<PostForm> for Post {
 }
 
 impl Post {
-  pub fn read(conn: &PgConnection, post_id: i32) -> Result<Self, Error> {
-    use crate::schema::post::dsl::*;
-    post.filter(id.eq(post_id)).first::<Self>(conn)
-  }
-
   pub fn list_for_community(
     conn: &PgConnection,
     the_community_id: i32,