Use Post::update_mentions07() instead of update_mentions()
This commit is contained in:
+2
-2
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user