Rename: FromId::from_id07 -> from_id

This commit is contained in:
Kitaiti Makoto
2022-05-02 19:24:36 +09:00
parent 0ab7774e29
commit 28440271bb
12 changed files with 24 additions and 24 deletions
+3 -3
View File
@@ -223,7 +223,7 @@ where
}
// Transform this actor to a model (see FromId for details about the from_id function)
let actor = match A::from_id07(
let actor = match A::from_id(
ctx,
&actor_id,
serde_json::from_value(act["actor"].clone()).ok(),
@@ -244,7 +244,7 @@ where
Some(x) => x,
None => return Self::NotHandled(ctx, act, InboxError::InvalidObject(None)),
};
let obj = match M::from_id07(
let obj = match M::from_id(
ctx,
&obj_id,
serde_json::from_value(act["object"].clone()).ok(),
@@ -343,7 +343,7 @@ pub trait FromId<C>: Sized {
/// - `id`: the ActivityPub ID of the object to find
/// - `object`: optional object that will be used if the object was not found in the database
/// If absent, the ID will be dereferenced.
fn from_id07(
fn from_id(
ctx: &C,
id: &str,
object: Option<Self::Object>,