Use Mention::build_activity07() instead of build_activity()
This commit is contained in:
@@ -71,9 +71,9 @@ pub fn create(
|
||||
|
||||
// save mentions
|
||||
for ment in mentions {
|
||||
Mention::from_activity(
|
||||
Mention::from_activity07(
|
||||
&conn,
|
||||
&Mention::build_activity(&conn, &ment)
|
||||
&Mention::build_activity07(&conn, &ment)
|
||||
.expect("comments::create: build mention error"),
|
||||
comm.id,
|
||||
false,
|
||||
|
||||
+3
-2
@@ -530,9 +530,10 @@ pub fn create(
|
||||
|
||||
if post.published {
|
||||
for m in mentions {
|
||||
Mention::from_activity(
|
||||
Mention::from_activity07(
|
||||
&conn,
|
||||
&Mention::build_activity(&conn, &m).expect("post::create: mention build error"),
|
||||
&Mention::build_activity07(&conn, &m)
|
||||
.expect("post::create: mention build error"),
|
||||
post.id,
|
||||
true,
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user