Remove searcher from arguments of Post::update()

This commit is contained in:
Kitaiti Makoto
2021-01-07 22:38:50 +09:00
parent aae2073146
commit 864379fb81
2 changed files with 3 additions and 5 deletions
+1 -2
View File
@@ -298,8 +298,7 @@ pub fn update(
post.source = form.content.clone();
post.license = form.license.clone();
post.cover_id = form.cover;
post.update(&*conn, &rockets.searcher)
.expect("post::update: update error");
post.update(&*conn).expect("post::update: update error");
if post.published {
post.update_mentions(