Use Post::update_mentions07() instead of update_mentions()

This commit is contained in:
Kitaiti Makoto
2022-05-02 21:49:00 +09:00
parent c4bb1f771b
commit 39b49c707e
2 changed files with 13 additions and 50 deletions
+2 -2
View File
@@ -306,11 +306,11 @@ pub fn update(
post.update(&conn).expect("post::update: update error");
if post.published {
post.update_mentions(
post.update_mentions07(
&conn,
mentions
.into_iter()
.filter_map(|m| Mention::build_activity(&conn, &m).ok())
.filter_map(|m| Mention::build_activity07(&conn, &m).ok())
.collect(),
)
.expect("post::update: mentions error");