List all comments
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use activitypub::{
|
||||
activity::Create,
|
||||
link,
|
||||
object::{Note, properties::ObjectProperties}
|
||||
object::{Note}
|
||||
};
|
||||
use chrono;
|
||||
use diesel::{self, PgConnection, RunQueryDsl, QueryDsl, ExpressionMethods, dsl::any};
|
||||
@@ -51,7 +51,7 @@ pub struct NewComment {
|
||||
impl Comment {
|
||||
insert!(comments, NewComment);
|
||||
get!(comments);
|
||||
find_by!(comments, find_by_post, post_id as i32);
|
||||
list_by!(comments, list_by_post, post_id as i32);
|
||||
find_by!(comments, find_by_ap_url, ap_url as String);
|
||||
|
||||
pub fn get_author(&self, conn: &PgConnection) -> User {
|
||||
|
||||
Reference in New Issue
Block a user