X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapub%2Fsrc%2Fhttp%2Fperson.rs;h=2543136348dd185e858be07cbf53932676f3ab48;hb=21a87ebaf2e5c038594eb70ef58bd51826259529;hp=453905eeea872638982eecdda8bdad7826ed911c;hpb=844cde9db3ceec713799499279a97d8b62d28f8c;p=lemmy.git diff --git a/crates/apub/src/http/person.rs b/crates/apub/src/http/person.rs index 453905ee..25431363 100644 --- a/crates/apub/src/http/person.rs +++ b/crates/apub/src/http/person.rs @@ -1,5 +1,5 @@ use crate::{ - activity_lists::PersonInboxActivitiesWithAnnouncable, + activity_lists::PersonInboxActivities, fetcher::user_or_community::UserOrCommunity, http::{create_apub_response, create_apub_tombstone_response}, objects::person::ApubPerson, @@ -30,7 +30,7 @@ pub(crate) async fn get_apub_person_http( ) -> Result { let user_name = info.into_inner().user_name; // TODO: this needs to be able to read deleted persons, so that it can send tombstones - let person: ApubPerson = Person::read_from_name(context.pool(), &user_name, true) + let person: ApubPerson = Person::read_from_name(&mut context.pool(), &user_name, true) .await? .into(); @@ -49,7 +49,7 @@ pub async fn person_inbox( body: Bytes, data: Data, ) -> Result { - receive_activity::, UserOrCommunity, LemmyContext>( + receive_activity::, UserOrCommunity, LemmyContext>( request, body, &data, ) .await @@ -60,7 +60,7 @@ pub(crate) async fn get_apub_person_outbox( info: web::Path, context: Data, ) -> Result { - let person = Person::read_from_name(context.pool(), &info.user_name, false).await?; + let person = Person::read_from_name(&mut context.pool(), &info.user_name, false).await?; let outbox_id = generate_outbox_url(&person.actor_id)?.into(); let outbox = EmptyOutbox::new(outbox_id)?; create_apub_response(&outbox)