rename new_fetcher to dereference_object_id

rewrite-fetcher
Felix Ableitner 2021-09-22 16:17:14 +02:00
parent 1013d1a46d
commit 171d17e00d
21 changed files with 21 additions and 21 deletions

View File

@ -1,4 +1,4 @@
use crate::{fetcher::new_fetcher::dereference, ActorType};
use crate::{fetcher::dereference_object_id::dereference, ActorType};
use activitystreams::{
base::BaseExt,
link::{LinkExt, Mention},

View File

@ -9,7 +9,7 @@ use crate::{
},
activity_queue::send_to_community_new,
extensions::context::lemmy_context,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
generate_moderators_url,
ActorType,
};

View File

@ -8,7 +8,7 @@ use crate::{
},
activity_queue::send_to_community_new,
extensions::context::lemmy_context,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
ActorType,
};
use activitystreams::{

View File

@ -10,7 +10,7 @@ use crate::{
},
activity_queue::send_to_community_new,
extensions::context::lemmy_context,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
generate_moderators_url,
ActorType,
};

View File

@ -8,7 +8,7 @@ use crate::{
},
activity_queue::send_to_community_new,
extensions::context::lemmy_context,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
ActorType,
};
use activitystreams::{

View File

@ -12,7 +12,7 @@ use crate::{
},
activity_queue::send_to_community_new,
extensions::context::lemmy_context,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
ActorType,
};
use activitystreams::{

View File

@ -4,7 +4,7 @@ use crate::{
verify_mod_action,
verify_person_in_community,
},
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
ActorType,
};
use lemmy_api_common::blocking;

View File

@ -7,7 +7,7 @@ use crate::{
},
activity_queue::send_activity_new,
extensions::context::lemmy_context,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
ActorType,
};
use activitystreams::{

View File

@ -7,7 +7,7 @@ use crate::{
},
activity_queue::send_activity_new,
extensions::context::lemmy_context,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
ActorType,
};
use activitystreams::{

View File

@ -7,7 +7,7 @@ use crate::{
},
activity_queue::send_activity_new,
extensions::context::lemmy_context,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
ActorType,
};
use activitystreams::{

View File

@ -1,7 +1,7 @@
use crate::{
check_community_or_site_ban,
check_is_apub_id_valid,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
generate_moderators_url,
};
use anyhow::anyhow;

View File

@ -10,7 +10,7 @@ use crate::{
},
activity_queue::send_to_community_new,
extensions::context::lemmy_context,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
objects::{post::Page, FromApub, ToApub},
ActorType,
};

View File

@ -12,7 +12,7 @@ use crate::{
},
activity_queue::send_to_community_new,
extensions::context::lemmy_context,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
ActorType,
PostOrComment,
};

View File

@ -8,7 +8,7 @@ use crate::{
},
activity_queue::send_to_community_new,
extensions::context::lemmy_context,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
ActorType,
PostOrComment,
};

View File

@ -1,6 +1,6 @@
use crate::{
activities::community::announce::AnnounceActivity,
fetcher::{fetch::fetch_remote_object, new_fetcher::dereference},
fetcher::{dereference_object_id::dereference, fetch::fetch_remote_object},
objects::community::Group,
};
use activitystreams::collection::{CollectionExt, OrderedCollection};

View File

@ -1,11 +1,11 @@
pub mod community;
pub mod dereference_object_id;
mod fetch;
pub mod new_fetcher;
pub mod post_or_comment;
pub mod search;
use crate::{
fetcher::{fetch::FetchError, new_fetcher::dereference},
fetcher::{dereference_object_id::dereference, fetch::FetchError},
ActorType,
};
use chrono::NaiveDateTime;

View File

@ -1,5 +1,5 @@
use crate::{
fetcher::{fetch::fetch_remote_object, is_deleted, new_fetcher::dereference},
fetcher::{dereference_object_id::dereference, fetch::fetch_remote_object, is_deleted},
find_object_by_id,
objects::{comment::Note, community::Group, person::Person as ApubPerson, post::Page, FromApub},
Object,

View File

@ -1,7 +1,7 @@
use crate::{
activities::verify_person_in_community,
extensions::context::lemmy_context,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
migrations::CommentInReplyToMigration,
objects::{create_tombstone, FromApub, Source, ToApub},
ActorType,

View File

@ -1,7 +1,7 @@
use crate::{
activities::{extract_community, verify_person_in_community},
extensions::context::lemmy_context,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
objects::{create_tombstone, FromApub, ImageObject, Source, ToApub},
ActorType,
};

View File

@ -1,6 +1,6 @@
use crate::{
extensions::context::lemmy_context,
fetcher::new_fetcher::dereference,
fetcher::dereference_object_id::dereference,
objects::{create_tombstone, FromApub, Source, ToApub},
};
use activitystreams::{