diff --git a/plume-models/src/posts.rs b/plume-models/src/posts.rs index 6c1b37b8..576e1a1b 100644 --- a/plume-models/src/posts.rs +++ b/plume-models/src/posts.rs @@ -63,7 +63,7 @@ impl Post { find_by!(posts, find_by_ap_url, ap_url as &str); last!(posts); - pub fn insert(conn: &Connection, new: NewPost, _searcher: &Searcher) -> Result { + pub fn insert(conn: &Connection, new: NewPost) -> Result { diesel::insert_into(posts::table) .values(new) .execute(conn)?; @@ -571,7 +571,6 @@ impl FromId for Post { fn from_activity(c: &PlumeRocket, article: LicensedArticle) -> Result { let conn = &*c.conn; - let searcher = &c.searcher; let license = article.custom_props.license_string().unwrap_or_default(); let article = article.object; @@ -619,7 +618,6 @@ impl FromId for Post { source: article.ap_object_props.source_object::()?.content, cover_id: cover, }, - searcher, )?; for author in authors { @@ -864,7 +862,6 @@ mod tests { source: "Hello".into(), cover_id: None, }, - &r.searcher, ) .unwrap(); PostAuthor::insert( diff --git a/src/api/posts.rs b/src/api/posts.rs index 284746ad..ad483a12 100644 --- a/src/api/posts.rs +++ b/src/api/posts.rs @@ -105,7 +105,6 @@ pub fn create( rockets: PlumeRocket, ) -> Api { let conn = &*rockets.conn; - let search = &rockets.searcher; let worker = &rockets.worker; let author = User::get(conn, auth.0.user_id)?; @@ -155,7 +154,6 @@ pub fn create( source: payload.source.clone(), cover_id: payload.cover_id, }, - search, )?; PostAuthor::insert( diff --git a/src/routes/posts.rs b/src/routes/posts.rs index b04fa4fc..b1e408f4 100644 --- a/src/routes/posts.rs +++ b/src/routes/posts.rs @@ -481,7 +481,6 @@ pub fn create( source: form.content.clone(), cover_id: form.cover, }, - &rockets.searcher, ) .expect("post::create: post save error");