}
impl Post_ for Post {
- // TODO: this is a duplicate?
- //fn read(conn: &PgConnection, post_id: i32) -> Result<Self, Error> {
- // use lemmy_db_schema::schema::post::dsl::*;
- // post.filter(id.eq(post_id)).first::<Self>(conn)
- //}
-
fn list_for_community(conn: &PgConnection, the_community_id: i32) -> Result<Vec<Self>, Error> {
use lemmy_db_schema::schema::post::dsl::*;
post