mirror of https://github.com/LemmyNet/lemmy.git
rename new_fetcher to dereference_object_id
parent
1013d1a46d
commit
171d17e00d
|
@ -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},
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
@ -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::{
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
@ -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::{
|
||||||
|
|
|
@ -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::{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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::{
|
||||||
|
|
|
@ -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::{
|
||||||
|
|
|
@ -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::{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
@ -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};
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
@ -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::{
|
||||||
|
|
Loading…
Reference in New Issue