Rename: from_activity07() -> from_activity()

This commit is contained in:
Kitaiti Makoto
2022-05-03 01:22:55 +09:00
parent 9a640b3438
commit 06d2f68ecd
15 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -225,7 +225,7 @@ impl FromId<DbConn> for Comment {
Self::find_by_ap_url(conn, id)
}
fn from_activity07(conn: &DbConn, note: Note) -> Result<Self> {
fn from_activity(conn: &DbConn, note: Note) -> Result<Self> {
let comm = {
let previous_url = note
.in_reply_to()
@@ -299,7 +299,7 @@ impl FromId<DbConn> for Comment {
}
let m = m.unwrap();
let not_author = m.href().ok_or(Error::MissingApProperty)? != author_url;
let _ = Mention::from_activity07(conn, &m, comm.id, false, not_author);
let _ = Mention::from_activity(conn, &m, comm.id, false, not_author);
}
}
comm