Remove searcher from arguments of Post::insert()

This commit is contained in:
Kitaiti Makoto
2021-01-07 22:20:55 +09:00
parent 6a2ba2260d
commit 6ad3359609
3 changed files with 1 additions and 7 deletions
-2
View File
@@ -105,7 +105,6 @@ pub fn create(
rockets: PlumeRocket,
) -> Api<PostData> {
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(
-1
View File
@@ -481,7 +481,6 @@ pub fn create(
source: form.content.clone(),
cover_id: form.cover,
},
&rockets.searcher,
)
.expect("post::create: post save error");