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::{ use activitystreams::{
base::BaseExt, base::BaseExt,
link::{LinkExt, Mention}, link::{LinkExt, Mention},

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
use crate::{ 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, find_object_by_id,
objects::{comment::Note, community::Group, person::Person as ApubPerson, post::Page, FromApub}, objects::{comment::Note, community::Group, person::Person as ApubPerson, post::Page, FromApub},
Object, Object,

View File

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

View File

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

View File

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